Reclaim reserved buffer for unused ports#831
Merged
liat-grozovik merged 5 commits intosonic-net:masterfrom Dec 6, 2021
Merged
Conversation
Signed-off-by: Stephen Sun <stephens@nvidia.com>
78da8fe to
6c89920
Compare
Signed-off-by: Stephen Sun <stephens@nvidia.com>
Signed-off-by: Stephen Sun <stephens@nvidia.com>
Signed-off-by: Stephen Sun <stephens@nvidia.com>
Collaborator
|
@neethajohn would you please help to approve this HLD PR? Thanks. |
…jects in admin down flow Signed-off-by: Stephen Sun <stephens@nvidia.com>
Collaborator
Author
|
Suggest merging order:
The swss static mode PR (sonic-net/sonic-swss#2011) doesn't depend on any PR and can be merged at any time. Db migrator PR (sonic-net/sonic-utilities#1822) and build image Mellanox specific PR (sonic-net/sonic-buildimage#8768) can also be merged before swss dynamic mode PR (sonic-net/sonic-swss#1910). |
Collaborator
|
@neethajohn could you please help to review? |
Collaborator
|
@neethajohn kindly reminder, this PR needs to get it as most of the code is already merged. |
neethajohn
approved these changes
Dec 6, 2021
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
201911 PRs
Master PRs (currently draft)
202106 PRs
202012 PRs
Reclaim reserved buffer for unused ports.
Originally, the reserved buffer is reclaimed by removing buffer objects of the unused ports. However, this introduces inconsistency. Consider the following scenarios:
Now we have two scenarios with the same SONiC buffer configuration, resulting in different buffer configurations in ASIC.
To resolve this issue:
zero buffer profilesare introduced to indicate 0 reserved size of a buffer object.The solution:
The zero profiles and pools will be handled in different ways between the dynamic and traditional buffer models.