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] Support dynamic buffer calculation on top of po…
…rt auto negotiation (sonic-net#1762) - What I did Update the speed used for headroom calculating according to port auto-negotiation change. The speed taken into the calculation is now called effective speed in the code. - Why I did it One logic was to take the configured speed into account when calculating the headroom because it's the maximum possible speed at which a port runs. As port auto-negotiation supported, this logic needs to be updated accordingly: The maximum possible speed is no longer the configured one with auto-negotiation enabled. So the speed taken into account should be: If port auto-negotiation is enabled: maximum speed in adv_speeds if it is configured maximum speed in supported_speeds otherwise Otherwise: the configured speed - How I verified it Run regression test and vs test. Signed-off-by: Stephen Sun stephens@nvidia.com
- Loading branch information