-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
net/gnrc_netif: add support for priority queues #18496
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
benpicco
approved these changes
Aug 22, 2022
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! |
maribu
added a commit
to maribu/RIOT
that referenced
this pull request
Apr 30, 2024
This fixes a regression introduced in RIOT-OS#18496
maribu
added a commit
to maribu/RIOT
that referenced
this pull request
May 8, 2024
This fixes a regression introduced in RIOT-OS#18496
ant9000
pushed a commit
to ant9000/RIOT
that referenced
this pull request
Aug 23, 2024
This fixes a regression introduced in RIOT-OS#18496
# for free
to join this conversation on GitHub.
Already have an account?
# 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.