OSDN Git Service

mlxsw: spectrum: Sanitize VLAN interface's uppers
authorIdo Schimmel <idosch@mellanox.com>
Wed, 19 Dec 2018 06:08:37 +0000 (06:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2018 20:28:07 +0000 (12:28 -0800)
commit927d0ef10a1071fba491b4858267fbb87ff19ed1
tree0e2056fb2d8ce82fb079dec1be1a32e07d4ce49b
parent055722716c396ac1c7fd36a828250a78db1f22bc
mlxsw: spectrum: Sanitize VLAN interface's uppers

Currently, only VRF and macvlan uppers are supported on top of VLAN
device configured over a bridge, so make sure the driver forbids other
uppers.

Note that enslavement to a VRF is handled earlier in the notification
block, so there is no need to check for a VRF upper here.

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