]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_trap: Adjust default policer burst size for Spectrum-{2, 3}
authorIdo Schimmel <idosch@mellanox.com>
Sun, 23 Aug 2020 08:06:22 +0000 (11:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2020 00:36:11 +0000 (17:36 -0700)
commit8be3845260cc3a3f0067a198be54d41ab618d33f
tree04d52f802bade51679b959c9eca6d892d06a4868
parenta118e6729f63bc1c4ea378dc95a1237ea0c8cf03
mlxsw: spectrum_trap: Adjust default policer burst size for Spectrum-{2, 3}

On the Spectrum-{2,3} ASICs the minimum burst size of the packet trap
policers needs to be 40% of the configured rate. Otherwise, intermittent
drops are observed even when the incoming packet rate is slightly lower
than the configured policer rate.

Adjust the burst size of the registered packet trap policers so that
they do not violate above mentioned limitation.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c