-
Notifications
You must be signed in to change notification settings - Fork 2.1k
sys/net/gnrc_pktbuf: deduplicate code #15839
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
Conversation
The stats are not too impressive, because:
So: The stats are lying, it is less code in this PR than in |
275ad32
to
919c6e6
Compare
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.
There is some stuff you missed (see Murdock). Also I would recommend to run the unittest
tests-pktbuf
on several boards (especially those with strict alignment) just to make sure nothing get's b0rken.
Not part of your PR, I know, but might I convince you to fix those vera++ warnings as well?
Implement gnrc_pktbuf_release_error() in gnrc_pktbuf once, rather than providing two implementations in gnrc_pktbuf_static and gnrc_pktbuf_malloc
6a4d69a
to
3970b66
Compare
|
All comments are addressed, the CI is happy, and I tested the shit out of it :-) |
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.
Yepp. Just have a small remaining comment. You may squash that directly in.
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 & Go!
Thanks :-) |
Contribution description
Implement
gnrc_pktbuf_release_error()
ingnrc_pktbuf
once, rather than providing two implementations ingnrc_pktbuf_static
andgnrc_pktbuf_malloc
.Testing procedure
master
and this PR:USEMODULE=gnrc_pktbuf_static make -C examples/gnrc_networking
USEMODULE=gnrc_pktbuf_malloc make -C examples/gnrc_networking
master
Issues/PRs references
suggested in review of #15694