]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd3b4f440a4b0626014d0fcbbae52d4b36dc58c86
tree950f9574ee542c7334433d699bb54c90bb72c906
parent47abc250fc28017ac71f588da9eaa263b730c237
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: 2f327378bafe ("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