ramips: Allow to receive vlan over untag ports on MT7530
authorJohn Crispin <john@openwrt.org>
Mon, 5 Oct 2015 10:26:09 +0000 (10:26 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 5 Oct 2015 10:26:09 +0000 (10:26 +0000)
commit672646acc33b20c40e191942924d1a436dfdb6c5
treeb27b536da1501b7f4993f37936e029f9f1e1d658
parent54a3e847481321efc111482501a525a1fe99196f
ramips: Allow to receive vlan over untag ports on MT7530

The MT7530 switch driver with enable_vlan set will automatically set all
ports to the user port mode. The hardware will remove the incoming vlan tag
on these ports and use it for its internal vlan. This is usually not wanted
and makes it impossible to communicate via vlan over the switch in both
directions.

It is possible to configure a switch port to "transparent mode" when this
port is only used as untag in the switch VLANs. This will disable the VLAN
untagging of packets when they were received on this port. The tagging on
"tag" ports based on the vlan id is still working.

The transparent port mode cannot be used when a port is both used in a VLAN
as "tag" and in another one as "untag" port.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
SVN-Revision: 47114
target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c