diff options
author | Vladimir Oltean <[email protected]> | 2020-09-21 03:10:23 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-09-20 19:01:33 -0700 |
commit | 8350129930d2d74426b03d2d59d121156c204531 (patch) | |
tree | ca597b66997cb765b20826a40b64ac88b9dea609 /net/unix/sysctl_net_unix.c | |
parent | 098c2fc6d91d11bfa0d0b7db0b1b0a5a19a80867 (diff) |
net: dsa: deny enslaving 802.1Q upper to VLAN-aware bridge from PRECHANGEUPPER
There doesn't seem to be any strong technical reason for doing it this
way, but we'll be adding more checks for invalid upper device
configurations, and it will be easier to have them all grouped under
PRECHANGEUPPER.
Tested that it still works:
ip link set br0 type bridge vlan_filtering 1
ip link add link swp2 name swp2.100 type vlan id 100
ip link set swp2.100 master br0
[ 20.321312] br0: port 5(swp2.100) entered blocking state
[ 20.326711] br0: port 5(swp2.100) entered disabled state
Error: dsa_core: Cannot enslave VLAN device into VLAN aware bridge.
[ 20.346549] br0: port 5(swp2.100) entered blocking state
[ 20.351957] br0: port 5(swp2.100) entered disabled state
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions