]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Add missing flood to router port
authorIdo Schimmel <idosch@mellanox.com>
Wed, 24 Aug 2016 09:18:51 +0000 (11:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2016 16:39:03 +0000 (09:39 -0700)
commitedaa4571ebacb6d23bd7eda3d0faeda333e62f69
treec3cf1d4eeecd2b51a682a50c6674177b71122096
parent0af7c3760e4bce918211b5ed72de2243744d2805
mlxsw: spectrum: Add missing flood to router port

In case we have a layer 3 interface on top of a bridge (VLAN / FID RIF),
then we should flood the following packet types to the router:

* Broadcast: If DIP is the broadcast address of the interface, then we
need to be able to get it to CPU by trapping it following route lookup.

* Reserved IP multicast (224.0.0.X): Some control packets (e.g. OSPF)
use this range and are trapped in the router block.

Fixes: d0216426a457 ("mlxsw: spectrum: Enable L3 interfaces on top of bridge devices")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/port.h
drivers/net/ethernet/mellanox/mlxsw/spectrum.c