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: Use exponent to configure message queue sizes #14086
gnrc: Use exponent to configure message queue sizes #14086
Conversation
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.
Changes look good so far. Configuration for TCP seems to be missing:
#define GNRC_TCP_TCB_MBOX_SIZE (8U)
in tcb.h
Also @leandrolanzieri please note that nettest is planned to be removed after the 2020.07 release. |
Added TCP TCB mbox size. Also the doc group for it. |
LGTM. On a different note, because I noticed the thread stack size of |
Yes. For now stack sizes were not exposed because |
I guess the GNRC implementation of #ifndef SOCK_MBOX_SIZE
#define SOCK_MBOX_SIZE (8) /**< Size for gnrc_sock_reg_t::mbox_queue */
#endif in |
Will do |
Are we OK to continue as is? |
Many of the actual queue sizes are still not |
But apart from that: from my side, yes. |
Ok, I though you referred only to IPv6. I re-added the |
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.
Please squash
@cgundogan are you ok with the current state of the PR? You are atm requesting changes. |
ac8aaa5
to
e9f753e
Compare
I can't reproduce locally, so I skip compile tests for now while trying to fix this. |
d03fd57
to
3372e1f
Compare
It seems to be working now. I added the Mbox size parameter to Kconfig now that TCP has its configurations there. @miri64 care to take another look? |
Looking good. Please squash! |
This changes the configuration macro to be the exponent of 2^n, as the message queue size needs to be always power of 2.
This changes the configuration macro to be the exponent of 2^n, as the message queue size needs to be always power of 2.
This changes the configuration macro to be the exponent of 2^n, as the message queue size needs to be always power of 2.
This changes the configuration macro to be the exponent of 2^n, as the message queue size needs to be always power of 2.
This changes the configuration macro to be the exponent of 2^n, as the message queue size needs to be always power of 2. Also a compile configuration documentation group is created.
This changes the configuration macro to be the exponent of 2^n, as the message queue size needs to be always power of 2. Also a compile configuration documentation group is created.
This changes the configuration macro to be the exponent of 2^n, as the message queue size needs to be always power of 2.
This changes the configuration macro to be the exponent of 2^n, as the message queue size needs to be always power of 2.
This changes the configuration macro to be the exponent of 2^n, as the mbox buffer size needs to be always power of 2. Also a compile configuration documentation group is created.
This changes the configuration macro to be the exponent of 2^n, as the mbox buffer size needs to be always power of 2. The macro now has the GNRC prefix. Also a compile configuration documentation group is created.
b88c8ef
to
dbfe0d8
Compare
Contribution description
This changes the definition of the macros that set the sizes of the message queues for the following GNRC modules:
Using the exponent to define the queue size helps to enforce the condition that it should be power of two. The correspondent Kconfig files were updated as well.
Also, I added Doxygen config groups for some of the modules which did not have it.
Testing procedure
Applications using these modules should still be compiling and working.
Issues/PRs references
Change proposed by @miri64 here.