OSDN Git Service

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)
commitef2025ec0acc92fa15ad3df386cb18fefe880643
treeca45dbd909335edcef2e4695fd19e6e002d5a490
parent9dc8b13e230a802f2510de5e37bfceaa59c9e281
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