sonic-net / sonic-swss

SONiC Switch State Service (SwSS)
https://azure.github.io/SONiC
Other
170 stars 503 forks source link

[Mellanox] Update headroom calculation algorithm #3235

Open stephenxs opened 1 month ago

stephenxs commented 1 month ago

What I did

  1. Fix a bug in lossless headroom calculation regarding the small packet percentage which should be calculated in a size-based approach instead of packet-based
  2. Adjust Mellanox-specific lossless headroom calculation algorithm

Why I did it

How I verified it

Manual test Regression test

Details if related

stephenxs commented 1 month ago

The manual test result is as below. Deviation is small and acceptable port MTU: 9100 RDMA MTU: 1024 Small packet percentage: 50% SPC3

SPC4