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. |
miri64
left a comment
There was a problem hiding this comment.
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? |
|
@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 <mail@martine-lenders.eu> Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
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