]> 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)
commit7fbf8c173deb256fedecb10fe3f5dd0e32171b0a
tree950f9574ee542c7334433d699bb54c90bb72c906
parentb9c396332e90f94b6aab34ac2287b7b327a03305
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: fdc3d70b8336 ("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