-
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
gnrc_netif: add packet to queue when device is busy #11263
Merged
+636
−24
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gnrc_netif: add packet to queue when device is busy
... and also send on send error (i.e. when *medium* was busy)
- 2025.04-devel
- 2025.01
- 2025.01-devel
- 2025.01-RC2
- 2025.01-RC1
- 2024.10
- 2024.10-devel
- 2024.10-RC2
- 2024.10-RC1
- 2024.07
- 2024.07-devel
- 2024.07-RC1
- 2024.04
- 2024.04-devel
- 2024.04-RC2
- 2024.04-RC1
- 2024.01
- 2024.01-devel
- 2024.01-RC2
- 2024.01-RC1
- 2023.10
- 2023.10-devel
- 2023.10-RC3
- 2023.10-RC2
- 2023.10-RC1
- 2023.07
- 2023.07-devel
- 2023.07-RC5
- 2023.07-RC4
- 2023.07-RC3
- 2023.07-RC2
- 2023.07-RC1
- 2023.04
- 2023.04-devel
- 2023.04-RC3
- 2023.04-RC2
- 2023.04-RC1
- 2023.01
- 2023.01-devel
- 2023.01-RC3
- 2023.01-RC2
- 2023.01-RC1
- 2022.10
- 2022.10-devel
- 2022.10-RC3
- 2022.10-RC2
- 2022.10-RC1
- 2022.07
- 2022.07-devel
- 2022.07-RC4
- 2022.07-RC3
- 2022.07-RC2
- 2022.07-RC1
- 2022.04
- 2022.04-devel
- 2022.04-RC7
- 2022.04-RC6
- 2022.04-RC5
- 2022.04-RC4
- 2022.04-RC3
- 2022.04-RC2
- 2022.04-RC1
- 2022.01
- 2022.01-devel
- 2022.01-RC2
- 2022.01-RC1
- 2021.10
- 2021.10-devel
- 2021.10-RC3
- 2021.10-RC2
- 2021.10-RC1
- 2021.07
- 2021.07-devel
- 2021.07-RC3
- 2021.07-RC2
- 2021.07-RC1
- 2021.04
- 2021.04-devel
- 2021.04-RC4
- 2021.04-RC3
- 2021.04-RC2
- 2021.04-RC1
- 2021.01
- 2021.01-devel
- 2021.01-RC4
- 2021.01-RC3
- 2021.01-RC2
- 2021.01-RC1
- 2020.10
- 2020.10-RC4
- 2020.10-RC3
- 2020.10-RC2
- 2020.10-RC1
commit a72d0ef3e84e211ce06da9504151e92385ef657a
There are no files selected for viewing
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
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
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.
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.
What was meant by this comment? 😨
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.
When this was written, the netif implementations just threw away the packet when they were unable to send (might not be the case with
netdev_new
, I don't know).So, to prevent it not to be lost in that case, we
hold
the packet (i.e. the nextrelease
does not remove it from the packet buffer), to put it into the queue later in ll1431-1437. If the device was not busy, we just remove it in l1447.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.
netdev_new
does indeed not release on send