]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Enable macvlan upper devices
authorIdo Schimmel <idosch@mellanox.com>
Sat, 14 Jul 2018 08:39:51 +0000 (11:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Jul 2018 18:23:25 +0000 (11:23 -0700)
commit4b0dd888b9288231082870f00a4212d523d9f889
tree9445398ec9351a12f49cfd68d3d0fe7d1a88c868
parent69ea71397a0683a02288a71c3112d6b1ed98884d
mlxsw: spectrum: Enable macvlan upper devices

In order to allow more unicast MAC addresses (e.g., VRRP virtual MAC) to
be directed to the router we need to enable macvlan uppers on top of
mlxsw netdevs.

Allow macvlan upper devices on top of mlxsw netdevs and sanitize
configurations that can't work. For example, a macvlan can't be enslaved
to a bridge as without ACLs the device doesn't take the destination MAC
into account when classifying a packet to a bridge instance (i.e., a
FID).

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/spectrum_router.c