forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove PGs from an administratively down port. (sonic-net#1677)
- What I did Bug fixes: Remove PGs from an administratively down port. - Why I did it To fix bugs - How I verified it Run regression and vs test - Details if related Remove PGs from an administratively down port. Introduce a new state: PORT_ADMIN_DOWN which represents the port is administratively down. Remove all PGs when the port is shut down and re-add all configured PGs when port is started up. Only record the new value but don't touch BUFFER_PG_TABLE if the following events come when a port is administratively down a port's MTU, speed, or cable length is updated a new PG is added to a port or an existing PG is removed from a port. Optimize the port event handling flow since refreshPriorityGroupsForPort should be called only once in case more than one fields are updated. Adjust the Lua plugin which calculates the buffer pool size accordingly Signed-off-by: Stephen Sun <stephens@nvidia.com>
- Loading branch information
Showing
4 changed files
with
328 additions
and
116 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
Oops, something went wrong.