-
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/pktdump : Expose Configurations to Kconfig #14071
Conversation
Mh.. as far as I can see, except for |
Which queue sizes are missing from the exposed modules? I see these configurable queue sizes:
|
TCP, UDP and RPL should also be configurable. I must have looked at an older branch, because now I can confirm, that IPv6 and 6LoWPAN are configurable via Kconfig. |
RPL is waiting for review #13941, the other modules are yet pending to be exposed. |
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.
There should also be a doxygen comment on CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP
/**
* @brief Exponent for the queue size (resulting in the queue size 2^n)
*/
#ifdef DOXYGEN
#define CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP (4U)
#endif
Needs rebase |
Done. Updated and tested. |
@miri64 are you OK with the changes? |
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.
Yepp, let's merge this.
@akshaim please squash! |
da4703f
to
6d40b44
Compare
You may squash the style fix immediately |
Add compile configuration 'GNRC_PKTDUMP_MSG_QUEUE_SIZE' to 'net_gnrc_conf' group
Introduced 'GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP' to hold exponent value and made GNRC_PKTDUMP_MSG_QUEUE_SIZE dependant on GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP. Moved 'GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP' to 'CONFIG_' namespace. Exposed configurations to Kconfig Co-authored-by: Martine Lenders <[email protected]> Co-authored-by: Leandro Lanzieri <[email protected]>
Done. |
Contribution description
This PR exposes compile configurations in PKTDUMP GNRC to Kconfig.
Testing procedure
The build works fine.
Test Files - Updated
Default State:
Firmware Output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.
main(): This is RIOT! (Version: 2020.07-devel-608-g1171d8-Kconfig_pktdump_tests)
CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP=3
GNRC_PKTDUMP_MSG_QUEUE_SIZE=(1<<3)
Usage with CFLAGS
/tests/gnrc_pkdump/Makefile
Firmware Output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.
main(): This is RIOT! (Version: 2020.07-devel-608-g1171d8-Kconfig_pktdump_tests)
CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP=4
GNRC_PKTDUMP_MSG_QUEUE_SIZE=(1<<4)
Usage with Kconfig
/tests/gnrc_pktdump
Firmware Output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.
main(): This is RIOT! (Version: 2020.07-devel-608-g1171d8-Kconfig_pktdump_tests)
CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP=7
GNRC_PKTDUMP_MSG_QUEUE_SIZE=(1<<7)
Issues/PRs references
#12888