]> asedeno.scripts.mit.edu Git - linux.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)
commit7e1741b47f2441e7c570284d60ba936e3d41529a
tree5e6c37a33c85c249e5173ec5521bcbe7bfb472ab
parentc5335d737ff30f1cb23d245ef9e20ec23cc2d7ba
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