-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mesh-forwarder] use
Array
to track forwarded frame info (#10540)
This commit updates and simplifies the tracking of information (message priority, drop status) for forwarded mesh-header fragmented frames. This is used for consistent priority assignment to all fragments of the same message and facilitates delay-aware queue management, where dropping one fragment leads to dropping all subsequent fragments of the same message. The entry type is renamed to `FwdFrameInfo`, and an `Array` is used to track the entries. Array helper methods such as `RemoveAllMatching()` and `FindMatching()` help simplify the code. Since `Array` tracks the current length, iterating over unused entries is avoided.
- Loading branch information
Showing
3 changed files
with
97 additions
and
113 deletions.
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
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