]> asedeno.scripts.mit.edu Git - linux.git/commit
net: dsa: check bridge VLAN in slave operations
authorVivien Didelot <vivien.didelot@gmail.com>
Sun, 25 Aug 2019 17:25:18 +0000 (13:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 03:17:27 +0000 (20:17 -0700)
commitc5335d737ff30f1cb23d245ef9e20ec23cc2d7ba
tree1bea5d0832275d6b01c3116b9e91359048c32c35
parentbdcff080f7ae1932893436f7891528aa8fc59cb9
net: dsa: check bridge VLAN in slave operations

The bridge VLANs are not offloaded by dsa_port_vlan_* if the port is
not bridged or if its bridge is not VLAN aware.

This is a good thing but other corners of DSA, such as the tag_8021q
driver, may need to program VLANs regardless the bridge state.

And also because bridge_dev is specific to user ports anyway, move
these checks were it belongs, one layer up in the slave code.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/port.c
net/dsa/slave.c