-
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
gnrc: use gnrc_netapi_dispatch_send() instead of manual iteration #5525
Conversation
d93e93e
to
890a237
Compare
There was a little bug introduced that is fixed in the latest iteration. |
@@ -168,7 +168,6 @@ void gnrc_ipv6_demux(kernel_pid_t iface, gnrc_pktsnip_t *current, gnrc_pktsnip_t | |||
case PROTNUM_ICMPV6: | |||
DEBUG("ipv6: handle ICMPv6 packet (nh = %u)\n", nh); | |||
gnrc_icmpv6_demux(iface, pkt); | |||
gnrc_pktbuf_release(pkt); |
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.
This removal was necessary because there isn't the release [hold] we had in https://github.com/RIOT-OS/RIOT/pull/5525/files#diff-9af59eae807169797112fdc7b1ca9504L140. Additionally, this simplifies a lot since we return to the event loop here anyways.
Tested quickly on native, pinging still works. It looks good code-wise and removes a lot of clutter. ACK! Please address my comment and then set the CI flag. |
890a237
to
bd230d3
Compare
Addressed and squashed immediately. |
Murdock does not seem to finish... |
It broke on #5747 (some weird synchronization error). |
There were still some occurrences of manual lookup in
gnrc_netreg
inside and in the usage of GNRC, that need not to be. This PR fixes that (and is also, like #5524 a preperation step forgnrc_netreg
withmbox
es)