OSDN Git Service

mlxsw: spectrum: Add VRRP traps
authorIdo Schimmel <idosch@mellanox.com>
Sat, 14 Jul 2018 08:39:53 +0000 (11:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Jul 2018 18:23:26 +0000 (11:23 -0700)
commit11566d34f8952a780d86e8a6e734006ed035aa6b
treeb0459f1acb494bd0344ef9deb8e94ffc05339a10
parent2db9937804ac23dc45e35f47dbf93ded516e8b58
mlxsw: spectrum: Add VRRP traps

Virtual Router Redundancy Protocol packets are used to communicate the
state of the Master router associated with the virtual router ID (VRID).

These are link-local multicast packets sent with IP protocol 112 that
are trapped in the router block in the ASIC.

Add a trap for these packets and mark the trapped packets to prevent
them from potentially being re-flooded by the bridge driver.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/trap.h