]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: program VLAN on CPU port from slave
authorVivien Didelot <vivien.didelot@gmail.com>
Sun, 25 Aug 2019 17:25:19 +0000 (13:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 03:17:28 +0000 (20:17 -0700)
commit62d807d68c64a1f4a5d88ed0d32c9caa194d8240
tree5e6c37a33c85c249e5173ec5521bcbe7bfb472ab
parent8e948fbe526a88c06764b120ca7c49e9f65d600e
net: dsa: program VLAN on CPU port from slave

DSA currently programs a VLAN on the CPU port implicitly after the
related notifier is received by a switch.

While we still need to do this transparent programmation of the DSA
links in the fabric, programming the CPU port this way may cause
problems in some corners such as the tag_8021q driver.

Because the dedicated CPU port is specific to a slave, make their
programmation explicit a few layers up, in the slave code.

Note that technically, DSA links have a dedicated CPU port as well,
but since they are only used as conduit between interconnected switches
of a fabric, programming them transparently this way is what we want.

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