]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Nov 2018 07:19:26 +0000 (08:19 +0100)
commit1ada2e1b289f719ea2e6b0dc5331f6c40b0341a7
treeca1ed90f1fcdff0b01f564dd97e75a04982a8b39
parenteebe064ce49c7ea3b730885183d6b109b1b17418
mlxsw: spectrum: Fix IP2ME CPU policer configuration

[ Upstream commit 96801552f846460fe9ac10f1b189602992f004e1 ]

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: 9148e7cf73ce ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c