]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Don't add vlans when vlan filtering is disabled
authorAndrew Lunn <andrew@lunn.ch>
Mon, 6 Nov 2017 23:04:24 +0000 (00:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Nov 2017 05:28:13 +0000 (14:28 +0900)
commiteddd4e321073a071b2ede6ff4d3f586f956f9bd1
treed7f2e26bd8ac44cec8443de0beec7d6932da8e64
parentf205e4be06a1f981e79222703edb6942b8bdbdf1
net: dsa: Don't add vlans when vlan filtering is disabled

The software bridge can be build with vlan filtering support
included. However, by default it is turned off. In its turned off
state, it still passes VLANs via switchev, even though they are not to
be used. Don't pass these VLANs to the hardware. Only do so when vlan
filtering is enabled.

This fixes at least one corner case. There are still issues in other
corners, such as when vlan_filtering is later enabled.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/port.c