gnrc/ipv6/nib: Expose configurations to Kconfig#13626
gnrc/ipv6/nib: Expose configurations to Kconfig#13626miri64 merged 24 commits intoRIOT-OS:masterfrom
Conversation
|
@leandrolanzieri please rebase. |
63cb8a1 to
a68bb55
Compare
|
I wrapped lines to 80 chars on files where I was getting the 100 char warning |
miri64
left a comment
There was a problem hiding this comment.
Mostly style and documentation stuff, as this is just renaming the macros and introduces the Kconfig file. Everything else should be uncovered by Murdock. Please squash immediately. I can't keep track of >20 commits anyways ;-P
3df65ce to
aa8319e
Compare
|
@miri64 I think I addressed all comments. I squashed directly. |
miri64
left a comment
There was a problem hiding this comment.
Minor error picked up by Murdock.
miri64
left a comment
There was a problem hiding this comment.
While you are fixing this anyway: how about some more warnings about experimental options.
Also evaluate it using IS_ACTIVE macro.
Also evaluate it using IS_ACTIVE
Also evaluate it using IS_ACTIVE macro.
Also evaluate it using IS_ACTIVE macro.
Also evaluate it using IS_ACTIVE macro.
Also evaluate it using IS_ACTIVE macro.
Also evaluate it using IS_ACTIVE macro.
Also evaluate using IS_ACTIVE macro.
Also evaluate using IS_ACTIVE macro.
Also evaluate using IS_ACTIVE macro.
Also evaluate using IS_ACTIVE macro.
Also evaluate using IS_ACTIVE macro.
Also evaluate using IS_ACTIVE macro.
aa8319e to
5833a3f
Compare
|
Added a fixup to guard all configuration parameters from the header when using Kconfig, so it does not override booleans. |
miri64
left a comment
There was a problem hiding this comment.
I tested with native and samr21-xpro:
examples/gcoapto test hosts (standard withnativeand 6LN withsamr21-xpro)examples/gnrc_networkingto test routers (standard withnativeand 6LR withsamr21-xpro)examples/gnrc_border_routerto test 6LBRs
Then I pinged both link-local addresses and global addresses. I did this without Kconfig and with Kconfig. To check the configuration with Kconfig, I deactivated router solicitations with examples/gcoap using CONFIG_GNRC_IPV6_NIB_NO_RTR_SOL=1 (which flashed the nice new warning).
It all worked. With the changed configuration the gcoap example did not send any router solicitation (making the global ping impossible on the samr21-xpro, as was expected).
ACK. Please squash your final change.
f9b33d4 to
aa2ec68
Compare
|
🎉 |
Contribution description
This PR moves configuration macros of GNRC NIB module to the
CONFIG_namespace and exposes them to Kconfig. To keep compatibility with boolean macros generated by Kconfig I modified the evaluation of many of them usingIS_ACTIVE.I think there are some cases where the
#ifcould be changed to C conditionals, but as I was not so sure I decided not to change this in general.Testing procedure
Issues/PRs references
Part of #12888