-
Notifications
You must be signed in to change notification settings - Fork 2k
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
netstats_l2: cc2538 (and at86rf2xx fixes) #5985
Conversation
@smlng would you mind splitting the at86rf2xx part into a separate commit? ACK for the changes in general. @cgundogan would you give it a quick try? Maybe at the Hack'n'ACK?! |
@PeterKietzmann the |
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK and go
Hm, I disagree with the at86rf2xx "fix".
|
|
From the L2 perspective I would argue that it is a success - otherwise the packet would not be passed to the driver. |
In general I would agree; but I would argue that from the RIOT perspective |
Hi! Sorry for merging this too fast. About the leading white spaces in the preprocessor lines, I have completely overlooked them. About the position of the rx byte counter I do understand both of your argumentations. When I reviewed this I was thinking about what I would assume as a user of these statistics and that was actually "how many bytes have successfully been received by the driver". That's why I gave my ACK. On the other hand I see Olegs concerns which might allow for easier troubleshooting. If we go with the change in this PR I agree that it might be reasonable to think about moving to |
The best solution would be probably to properly specify and document what these statistics mean. |
@OlegHahm this seems reasonable. But I think we should first agree on what we want them to mean: (i) complete number bytes received, including later removed ones from malformed frames or (ii) number of successfully received bytes by the driver. IIRC you wrote the initial support for L2 statistics so I'd like to leave the decision up to you :-)! |
I'd like to point out here that for Linux/Unix experienced user or developer these stats might be more intuitive (to understand) if they mean (and capture) the same as on Linux, i.e., |
@smlng, agreed. Can you (i) provide documentation of the meanings of the statistics for |
@PeterKietzmann, okay, let's have a discussion on the mailing list. |
add layer2 netstats to
cc2538
and minor correction inat86rf2xx
.