]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Allow dsa and cpu ports in multiple vlans
authorAndrew Lunn <andrew@lunn.ch>
Mon, 25 Sep 2017 21:32:20 +0000 (23:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Sep 2017 16:45:06 +0000 (09:45 -0700)
commita4c3f720fcbc17f2e2ad62823b2bce1a2f89fc59
treeb2e8be02a049436d01b1a7c5119931ba9a8eb6a6
parentd796eb449e19acae30467dbbfd759430244b23a0
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: 59da22002327 ("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>
drivers/net/dsa/mv88e6xxx/chip.c