]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: use ports list to map bridge
authorVivien Didelot <vivien.didelot@gmail.com>
Mon, 21 Oct 2019 20:51:27 +0000 (16:51 -0400)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 19:37:07 +0000 (12:37 -0700)
commit8a93afb5be740cc70419686b430c2e3a64a915c6
treeca45dbd909335edcef2e4695fd19e6e002d5a490
parent5c4468005ea92bbeae355b4f15c28df7f59595a1
net: dsa: mv88e6xxx: use ports list to map bridge

Instead of digging into the other dsa_switch structures of the fabric
and relying too much on the dsa_to_port helper, use the new list
of switch fabric ports to remap the Port VLAN Map of local bridge
group members or remap the Port VLAN Table entry of external bridge
group members.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/dsa/mv88e6xxx/chip.c