]> 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)
commit376a9e6f37511572f5721633ef7e7c58f147f766
treeca45dbd909335edcef2e4695fd19e6e002d5a490
parent7d0e043743b6135efc5045f56470b44868213dae
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