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)
commit7ee0db9d7e98ce0d67083b2985620557b8d0897b
tree04d52f802bade51679b959c9eca6d892d06a4868
parent85eb5bc33717eea3642148632f3ecbefb7ae6a02
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