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_netreg: mbox and arbitrary callback support #5526

Merged
merged 3 commits into from
Oct 25, 2016

Conversation

miri64
Copy link
Member

@miri64 miri64 commented Jun 7, 2016

Adds dispatch capabilities to gnrc_netapi/gnrc_netreg other than target threads. This is optional behavior. The new target types introduced are:

Depends on #5524 (merged), #5525 (merged), and #4919 (merged)

@miri64 miri64 added Area: network Area: Networking Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. State: waiting for other PR State: The PR requires another PR to be merged first GNRC labels Jun 7, 2016
@miri64
Copy link
Member Author

miri64 commented Jun 7, 2016

The callback idea was mainly to have some experiments done (and maybe future option provided) to run GNRC in a single thread.

@miri64
Copy link
Member Author

miri64 commented Jun 7, 2016

And it can also be used to implement receive callbacks in conn very slim (see #5091)

@miri64 miri64 force-pushed the gnrc_netreg/api/mbox-extension branch from c33ddbd to 4ff370c Compare August 5, 2016 15:21
@miri64
Copy link
Member Author

miri64 commented Aug 5, 2016

Rebased to current master.

@miri64 miri64 force-pushed the gnrc_netreg/api/mbox-extension branch from 5e4f6a5 to fb93fae Compare August 5, 2016 16:13
@miri64
Copy link
Member Author

miri64 commented Aug 11, 2016

Fixed some errors.

@miri64 miri64 force-pushed the gnrc_netreg/api/mbox-extension branch 2 times, most recently from 6a613e7 to 313ca9d Compare August 12, 2016 12:19
@miri64
Copy link
Member Author

miri64 commented Aug 12, 2016

Rebased to current dependencies

@miri64
Copy link
Member Author

miri64 commented Aug 25, 2016

Rebased to current #5524 (as it is the only remaining dependency) and squashed.

@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 25, 2016
miri64 added a commit to miri64/RIOT that referenced this pull request Aug 25, 2016
miri64 added a commit to miri64/RIOT that referenced this pull request Aug 26, 2016
@miri64 miri64 force-pushed the gnrc_netreg/api/mbox-extension branch from b6c0c80 to ae85de7 Compare August 26, 2016 12:01
@miri64
Copy link
Member Author

miri64 commented Aug 26, 2016

Rebased to current #5524 and fixed a missing change.

@miri64 miri64 added the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Aug 26, 2016
miri64 added a commit to miri64/RIOT that referenced this pull request Aug 26, 2016
@miri64 miri64 added the Community: Hack'n'ACK candidate This PR is a candidate for review and discussion during one of RIOT's monthly Hack'n'ACK parties label Aug 30, 2016
@kaspar030
Copy link
Contributor

Quite a lot of changes, and I don't know gnrc well enough. Will reassign.

@kaspar030 kaspar030 removed their assignment Sep 27, 2016
@miri64 miri64 added this to the Release 2016.10 milestone Oct 18, 2016
@miri64
Copy link
Member Author

miri64 commented Oct 18, 2016

Needed for #5772, so added to release.

@miri64 miri64 force-pushed the gnrc_netreg/api/mbox-extension branch from ae85de7 to 2fced10 Compare October 25, 2016 16:49
@miri64
Copy link
Member Author

miri64 commented Oct 25, 2016

Rebased to current #5526

@miri64 miri64 removed the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Oct 25, 2016
@@ -59,6 +59,10 @@ ifneq (,$(filter gnrc_conn_udp,$(USEMODULE)))
USEMODULE += gnrc_udp
endif

ifneq (,$(filter gnrc_netreg_extra,$(USEMODULE)))
Copy link
Member

Choose a reason for hiding this comment

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

what was the idea behind the name gnrc_netreg_extra? I somehow fail to see the relation to what this PR actually does (add other dispatch capabilities with mbox, instead of threads)

Copy link
Member Author

Choose a reason for hiding this comment

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

Well the _extra module pulls in the mbox and callback functionality.

Copy link
Member Author

Choose a reason for hiding this comment

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

I can fix it up to devide it into two modules, but the complexity is growing in both instances.

Copy link
Member Author

Choose a reason for hiding this comment

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

Introduced two pseudomodule with a better name.

@haukepetersen
Copy link
Contributor

looks valid to me, the only thing is the name of the MODULE_GNRC_NETREG_EXTRA module. I would prefer MODULE_GNRC_NETAPI_EXTRA, as this is the more general term and in the end this PR provides us with more flexibility when using netapi.

Copy link
Contributor

@haukepetersen haukepetersen left a comment

Choose a reason for hiding this comment

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

ACK once Murdock agrees

@haukepetersen
Copy link
Contributor

Oh, and of course once squashed and rebased...

@miri64
Copy link
Member Author

miri64 commented Oct 25, 2016

will wait for #5524 to get merged with the squash (+ rebase), so I can cleanly rebase #5772 on this one.

@miri64 miri64 force-pushed the gnrc_netreg/api/mbox-extension branch from 25d4472 to 8c7ce02 Compare October 25, 2016 19:36
@miri64
Copy link
Member Author

miri64 commented Oct 25, 2016

Rebased and squashed

@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: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable State: waiting for other PR State: The PR requires another PR to be merged first labels Oct 25, 2016
@miri64 miri64 force-pushed the gnrc_netreg/api/mbox-extension branch from 8c7ce02 to 0016463 Compare October 25, 2016 20:17
@miri64
Copy link
Member Author

miri64 commented Oct 25, 2016

Fixed issue in tests/slip and squashed immediately.

@cgundogan
Copy link
Member

Murdock is happy => GO

@cgundogan cgundogan merged commit a74f429 into RIOT-OS:master Oct 25, 2016
@miri64 miri64 deleted the gnrc_netreg/api/mbox-extension branch October 25, 2016 21:03
miri64 added a commit to miri64/RIOT that referenced this pull request Nov 3, 2016
PR RIOT-OS#5526 introduced mbox support for netreg so using these functions
is now required.
miri64 added a commit to miri64/RIOT that referenced this pull request Nov 3, 2016
PR RIOT-OS#5526 introduced mbox support for netreg so using these functions
is now required.
samkumar pushed a commit to samkumar/RIOT-OS that referenced this pull request Nov 7, 2016
PR RIOT-OS#5526 introduced mbox support for netreg so using these functions
is now required.
rzr pushed a commit to TizenTeam/RIOT that referenced this pull request Nov 8, 2016
PR RIOT-OS#5526 introduced mbox support for netreg so using these functions
is now required.
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 Community: Hack'n'ACK candidate This PR is a candidate for review and discussion during one of RIOT's monthly Hack'n'ACK parties Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants