net: dsa: mv88e6xxx: include DSA ports in VLANs
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Tue, 3 Nov 2015 15:52:52 +0000 (10:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2015 16:30:17 +0000 (11:30 -0500)
commit3d131f070948e4ad93189cb379b3a45d53dce71b
tree950f9574ee542c7334433d699bb54c90bb72c906
parent4c7ea3c0791e971f05f78453a587a1640fe09a61
net: dsa: mv88e6xxx: include DSA ports in VLANs

DSA ports must be members of a VLAN in order to ensure frame bridging
between chained switch chips.

Thus tag them in addition to the CPU port when adding a VLAN, and skip
them when deleting a VLAN and reporting VLAN members.

Also use the UNMODIFIED egress policy, so that frames egress on these
ports as they ingress, tagged or untagged.

Fixes: 0d3b33e60206 ("net: dsa: mv88e6xxx: add VLAN Load support")
Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c