]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit43528898d3bbf19e10b8c877ae0a11b83c144950
tree0e2056fb2d8ce82fb079dec1be1a32e07d4ce49b
parentfa9d2bd34862edfa850c2df8c8bbdfaf8b357dbc
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