-
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
net/gnrc_netif: add support for priority queues #18496
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.
Looks sensible to me
3166c98
to
e2efc90
Compare
amended and squashed directly |
e2efc90
to
c99bb72
Compare
I already tested this one with #18472 and it definitely helps the SubMAC or any MAC layer in the middle |
CI is unhappy |
c99bb72
to
5fd601a
Compare
I forgot GNRC LoRaWAN and the other MACs use |
Thanks for the review! |
This fixes a regression introduced in RIOT-OS#18496
This fixes a regression introduced in RIOT-OS#18496
This fixes a regression introduced in RIOT-OS#18496
Contribution description
This PR adds support for
gnrc_netif
priority queues.Since some drivers run a Bottom Half Processor in the same
gnrc_netif
thread, events from MAC layers (e.g submac) can delay IRQ offloading. To avoid that, a second event queue with high priority is introduced ifMODULE_BHP_EVENT
is present.I also use this queue for the event based Bottom Half Processor of
kw2xrf
radios.Testing procedure
Make sure all unittests pass. Also,
kw2xrf
should still work in GNRC.Since I'm currently on the train I couldn't test it on real hardware. I will post tests results asap.
Issues/PRs references
This should make MAC layers such as the SubMAC or openDSME more robust.