cpu/native: default to GNRC_NETIF_NUMOF for the number of TAP interfaces#11979
Closed
benpicco wants to merge 1 commit intoRIOT-OS:masterfrom
Closed
cpu/native: default to GNRC_NETIF_NUMOF for the number of TAP interfaces#11979benpicco wants to merge 1 commit intoRIOT-OS:masterfrom
benpicco wants to merge 1 commit intoRIOT-OS:masterfrom
Conversation
This makes it easier to use native with multiple tap interfaces as only one define (GNRC_NETIF_NUMOF) has to be changed.
miri64
requested changes
Aug 8, 2019
Member
miri64
left a comment
There was a problem hiding this comment.
There is a reason those to are distinct. native can have other network devices than GNRC_NETIF_NUMOF (e.g. socket_zep). So adding those still would require the same hassle with no clear reasoning why in that case but not the case outlined here.
Member
|
Also I believe applications like |
Contributor
Author
|
Alright, so the proper solution would be to set And then add a more convenient way to change |
Member
|
Yeah.. see #9903 for more discussions on that topic ;-). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
When wanting to use multiple tap interfaces on the
nativeboard, bothNETDEV_TAP_MAXandGNRC_NETIF_NUMOFhave to be changed.This makes creating a
nativeinstance with more than one tap interface more convenient.Testing procedure
In
examples/gnrc_networking:before
after
Issues/PRs references
Makes reproducing #11980 easier.