]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8c583fef25900ac176b1964c319563a8e48ee25
treeb0459f1acb494bd0344ef9deb8e94ffc05339a10
parent8ab88b6ac4765e301d9cce2e7ff2bc0c599b64c8
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