net: dsa: Deny enslaving VLAN devices into VLAN aware bridge
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 20 Feb 2019 22:35:38 +0000 (14:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2019 19:53:32 +0000 (11:53 -0800)
commitcc1d5bda17c8eb4cd195f05a5558ed63df057fce
tree78a7fe8dfe224a9ac807b0593cd436900034b0df
parent6d20faecc5949a305946559a38c89578e7d68264
net: dsa: Deny enslaving VLAN devices into VLAN aware bridge

VLAN devices on top of a DSA network device which is already part of a
bridge and with said bridge being VLAN aware should not be allowed to be
enslaved into that bridge. For one, this duplicates functionality
offered by the VLAN aware bridge which supports tagged and untagged VLAN
frames processing and it would make things needlessly complex to e.g.:
propagate FDB/MDB accordingly.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c