]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitacca789a358cc960be3937851d7de6591c79d6c2
tree7216f29b8d9bdadb9476e26696ff4a191350f631
parent314bd842d98e1035cc40b671a71e07f48420e58f
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: 11566d34f895 ("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