aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/tag_mtk.c
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2017-12-15 12:47:00 +0800
committerDavid S. Miller <davem@davemloft.net>2017-12-15 10:31:54 -0500
commit83163f7dca5684816d01c8ccf4857aa74801e7b7 (patch)
treeef187f7d3fc2d5615d1cfb3d884640135ebede12 /net/dsa/tag_mtk.c
parentnet: dsa: lan9303: Introduce lan9303_read_wait (diff)
downloadlinux-dev-83163f7dca5684816d01c8ccf4857aa74801e7b7.tar.xz
linux-dev-83163f7dca5684816d01c8ccf4857aa74801e7b7.zip
net: dsa: mediatek: add VLAN support for MT7530
MT7530 can treat each port as either VLAN-unaware port or VLAN-aware port through the implementation of port matrix mode or port security mode on the ingress port, respectively. On one hand, Each port has been acting as the VLAN-unaware one whenever the device is created in the initial or certain port joins or leaves into/from the bridge at the runtime. On the other hand, the patch just filling the required callbacks for VLAN operations is achieved via extending the port to be into port security mode when the port is configured as VLAN-aware port. Which mode can make the port be able to recognize VID from incoming packets and look up VLAN table to validate and judge which port it should be going to. And the range for VID from 1 to 4094 is valid for the hardware. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/tag_mtk.c')
0 files changed, 0 insertions, 0 deletions