Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the order of frames preserved when sending via a can socket? #7

Open
not-a-user opened this issue Mar 10, 2021 · 0 comments
Open

Comments

@not-a-user
Copy link

This is more of a fundamental question than an issue:

Given that a single process and a single thread sends frames using a single raw can socket (socket(PF_CAN, SOCK_RAW, CAN_RAW)) and always uses the same can id; is there a guarantee that the frames will appear in the same order on the wire?

If not, can we take measures (set options, change configurations, etc.) to get this guarantee?

We observe reordering of frames compared to the write calls that the user-space application does. This happens every two hours or so under high load. We use a modified kernel from the 5.4 series (not this one) and real hardware.

Any help from you experts to shed light on this would be very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant