Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
can: fix ack number with a high pid (#278)
The ack number uses the pid in its 16 most significant bits and a counter in the lower 16 bits. This allows us to filter out acks that are not for the current process. But, the pid can be encoded over more than 16 bits, so this fix allows the usage of the 16 lsb of the pid in the ack number, the msb of the pid are lost. Likelyhood that the 16 lsb of the PID are the same between two processes that use raw can-fd is small-enough for us to use this method.
- Loading branch information