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

gnrc: use gnrc_netapi_dispatch_send() instead of manual iteration #5525

Merged
merged 2 commits into from
Aug 25, 2016

Conversation

miri64
Copy link
Member

@miri64 miri64 commented Jun 7, 2016

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 for gnrc_netreg with mboxes)

@miri64 miri64 added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: network Area: Networking GNRC labels Jun 7, 2016
@miri64 miri64 force-pushed the gnrc/enh/dispatch-send branch from d93e93e to 890a237 Compare August 12, 2016 12:09
@miri64 miri64 assigned PeterKietzmann and unassigned cgundogan Aug 12, 2016
@miri64
Copy link
Member Author

miri64 commented Aug 12, 2016

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);
Copy link
Member Author

@miri64 miri64 Aug 12, 2016

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.

@cgundogan
Copy link
Member

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.

@miri64 miri64 force-pushed the gnrc/enh/dispatch-send branch from 890a237 to bd230d3 Compare August 18, 2016 11:20
@miri64
Copy link
Member Author

miri64 commented Aug 18, 2016

Addressed and squashed immediately.

@miri64 miri64 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Aug 18, 2016
@miri64
Copy link
Member Author

miri64 commented Aug 19, 2016

Murdock does not seem to finish...

@miri64 miri64 added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Aug 19, 2016
@kYc0o kYc0o mentioned this pull request Aug 19, 2016
@kaspar030 kaspar030 added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Aug 19, 2016
@kaspar030
Copy link
Contributor

Murdock does not seem to finish...

It broke on #5747 (some weird synchronization error).

@miri64 miri64 merged commit 2c5fbab into RIOT-OS:master Aug 25, 2016
@miri64 miri64 deleted the gnrc/enh/dispatch-send branch August 25, 2016 12:21
@miri64 miri64 added this to the Release 2016.10 milestone Oct 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants