]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Fix IP2ME CPU policer configuration
authorShalom Toledo <shalomt@mellanox.com>
Fri, 2 Nov 2018 19:49:15 +0000 (19:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Nov 2018 02:31:42 +0000 (19:31 -0700)
commit4a36759f63fcbc93e5f4ab49458b8dcc4daea96e
treeaad3268fbab8540fc4981c2d5f5f0cfd512a46aa
parente3031a37efb534087b92a1fdf6fbeeacc32d4bef
mlxsw: spectrum: Fix IP2ME CPU policer configuration

The CPU policer used to police packets being trapped via a local route
(IP2ME) was incorrectly configured to police based on bytes per second
instead of packets per second.

Change the policer to police based on packets per second and avoid
packet loss under certain circumstances.

Fixes: f4480546c7c3 ("mlxsw: spectrum: Add policers for trap groups")
Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c