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)
commitf888f58795b640442165e60a6fa93e8e623d01a5
treec3cf1d4eeecd2b51a682a50c6674177b71122096
parentd7226c7a4dd19929d6df4ae04698da2fcf6f875a
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: 99f44bb3527b ("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