OSDN Git Service

net: dsa: mv88e6xxx: use ports list to map port VLAN
authorVivien Didelot <vivien.didelot@gmail.com>
Mon, 21 Oct 2019 20:51:26 +0000 (16:51 -0400)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 19:37:07 +0000 (12:37 -0700)
commit9dc8b13e230a802f2510de5e37bfceaa59c9e281
tree7df9b91c5c12cce191881db1d27be864edff1a54
parentd14939be8bfc4b7493007c365cce5d707d4fbfa1
net: dsa: mv88e6xxx: use ports list to map port VLAN

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 define the mask of the local ports allowed to
receive frames from another port of the fabric.

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