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.
[Dynamic buffer calc] Bug fix: Remove PGs from an administratively do…
…wn port. (sonic-net#1652) 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 - Optimize the Lua plugin which calculates the buffer pool size according Signed-off-by: Stephen Sun stephens@nvidia.com How I verified it Run regression and vs test
- Loading branch information
Showing
4 changed files
with
373 additions
and
147 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.