Skip to content

Conversation

benpicco
Copy link
Contributor

@benpicco benpicco commented Jun 6, 2022

Contribution description

Move the netif thread message queue to the gnrc_netif struct so we don't have to allocate it on the stack (and enlarge the stack when we use a larger queue).

Testing procedure

Most drivers will now have more free stack space, cc110x and nrf24l01p_ng should stay roughly the same as they would handle this manually previously.

Issues/PRs references

alternative to #17905

@benpicco benpicco requested a review from maribu June 6, 2022 09:24
@github-actions github-actions bot added Area: network Area: Networking Area: sys Area: System labels Jun 6, 2022
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jun 6, 2022
Copy link
Member

@maribu maribu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. Code change looks unscary. But Murdock seems to want a few Makefile.ci updated.

@benpicco
Copy link
Contributor Author

benpicco commented Jun 7, 2022

I think I'd rather shrink the netif thread stack sizes than blacklisting more boards because the memory for the queue now moved from the stack to a static allocation.

@miri64
Copy link
Member

miri64 commented Jun 20, 2022

I think I'd rather shrink the netif thread stack sizes than blacklisting more boards because the memory for the queue now moved from the stack to a static allocation.

Then please go ahead.

@maribu
Copy link
Member

maribu commented Jul 19, 2022

Code change looks good to me, but Murdock is not yet happy

@benpicco
Copy link
Contributor Author

#17905 now does the same, but with a handy define for the default netif stack size

@benpicco benpicco closed this Oct 13, 2022
@benpicco benpicco deleted the gnrc_netif-msg_queue branch October 13, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: network Area: Networking Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants