]> git.baikalelectronics.ru Git - kernel.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)
commit8e948fbe526a88c06764b120ca7c49e9f65d600e
tree1bea5d0832275d6b01c3116b9e91359048c32c35
parent010259f94fd95ea4cd8ba383ca1dcf3cbdd6bfb3
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