Skip to content

Commit db06ae4

Browse files
lunndavem330
authored andcommitted
net: dsa: mv88e6xxx: Allow dsa and cpu ports in multiple vlans
Ports with the same VLAN must all be in the same bridge. However the CPU and DSA ports need to be in multiple VLANs spread over multiple bridges. So exclude them when performing this test. Fixes: b2f81d3 ("net: dsa: add CPU and DSA ports as VLAN members") Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 35f493b commit db06ae4

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/dsa/mv88e6xxx

1 file changed

+4
-0
lines changed

drivers/net/dsa/mv88e6xxx/chip.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,10 @@ static int mv88e6xxx_port_check_hw_vlan(struct dsa_switch *ds, int port,
11001100
};
11011101
int i, err;
11021102

1103+
/* DSA and CPU ports have to be members of multiple vlans */
1104+
if (dsa_is_dsa_port(ds, port) || dsa_is_cpu_port(ds, port))
1105+
return 0;
1106+
11031107
if (!vid_begin)
11041108
return -EOPNOTSUPP;
11051109

0 commit comments

Comments
 (0)