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

net/can: fix timestamp #15952

Merged
merged 1 commit into from
Mar 7, 2025
Merged

Conversation

occam25
Copy link
Contributor

@occam25 occam25 commented Mar 7, 2025

Summary

Fix timestamp in socket CAN. Right now the timestamp is only generated if there is no reader and the frame is stored in the read ahead list. This is solved by moving the timestamp generation before the code flow branch.

Impact

This has no impact other than having the timestamp working again.

Testing

As discussed in the mailing list, I have tested this fix in our current branch that is older than main. I can't test it on main because our whole system would not even compile. Updating the system to the latest Nuttx is a pending task in our backlog but it will take quite some time. Nevertheless, since this is a small change that doesn't add any new code but just moves the timestamp generation it may be worth to consider it.

@github-actions github-actions bot added Area: Networking Effects networking subsystem Size: S The size of the change in this PR is small labels Mar 7, 2025
@occam25
Copy link
Contributor Author

occam25 commented Mar 7, 2025

@PetervdPerk FYI

@jerpelea jerpelea requested a review from acassis March 7, 2025 09:52
Copy link
Contributor

@PetervdPerk-NXP PetervdPerk-NXP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Fixes regression from #7616
By restoring to original correct implementation.

@lupyuen
Copy link
Member

lupyuen commented Mar 7, 2025

@occam25 Could you fill in the Commit Description? (Just copy from PR Summary) And sign off with git commit -s. Thanks :-)

Fix timestamp in socket CAN. Right now the timestamp is only generated
if there is no reader and the frame is stored in the read ahead list.
This is solved by moving the timestamp generation before the code flow
branch.

Signed-off-by: Javier Casas <[email protected]>
@occam25 occam25 force-pushed the Fix_timestamp_in_socket_CAN branch from 1bf09d0 to 12396a2 Compare March 7, 2025 12:47
@occam25
Copy link
Contributor Author

occam25 commented Mar 7, 2025

@lupyuen sorry about that, I forgot to add the description and the signature. I have added both now. Thanks!

@acassis acassis merged commit 73f9ef0 into apache:master Mar 7, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Networking Effects networking subsystem Size: S The size of the change in this PR is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants