]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Use dedicated policer for VRRP packets
authorIdo Schimmel <idosch@mellanox.com>
Sun, 29 Dec 2019 11:40:23 +0000 (13:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Dec 2019 20:29:13 +0000 (12:29 -0800)
commit71678d6a3bf984eab057db0959c327112a658b81
tree7216f29b8d9bdadb9476e26696ff4a191350f631
parent46e3ee40abdb111e0656a56c315536ce1c184f3d
mlxsw: spectrum: Use dedicated policer for VRRP packets

Currently, VRRP packets and packets that hit exceptions during routing
(e.g., MTU error) are policed using the same policer towards the CPU.
This means, for example, that misconfiguration of the MTU on a routed
interface can prevent VRRP packets from reaching the CPU, which in turn
can cause the VRRP daemon to assume it is the Master router.

Fix this by using a dedicated policer for VRRP packets.

Fixes: a8c583fef259 ("mlxsw: spectrum: Add VRRP traps")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Alex Veber <alexve@mellanox.com>
Tested-by: Alex Veber <alexve@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum.c