ar71xx: ar8216: tagged+untagged on ar8327 (#12181)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 23 Sep 2014 10:19:58 +0000 (10:19 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 23 Sep 2014 10:19:58 +0000 (10:19 +0000)
commit200e1d786d1cdd816cdf6f17e6933319c04a3ed3
tree54305a035ead1c00d8a7662e503c96dd4aaf559b
parent849e774cd21face37e4daaad1fbc0e8460835c1a
ar71xx: ar8216: tagged+untagged on ar8327 (#12181)

This allows tagged and untagged traffic together on the same port on ar8327
switch devices.

I looked at the first attempt to do this in r40777 (ar71xx: Fix tagged+untagged
operation on AR8327N (#12181)). I also set the vlan and port egress policies
like that change. But I change vlan_tagged in an less intrusive way. The
tagged/untagged decision is now based on the following rules:
- if vid != pvid then traffic is always tagged
- if vid == pvid then vlan_tagged stores if the traffic should be tagged

Tested on TP-Link WDR-3600 (ar8327N).

Signed-off-by: Valentin Spreckels <Valentin.Spreckels@Informatik.Uni-Oldenburg.DE>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42653 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/ar8216.c