]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: dsa: tag_sja1105: implement sub-VLAN decoding
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 12 May 2020 17:20:34 +0000 (20:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2020 20:08:08 +0000 (13:08 -0700)
commit84eeb5d460e399795e9a92a0cd44999254886150
tree8267610ed55c43566e728c570f7b2c7d015cec74
parent3eaae1d05f2b5be1be834bfad64f8fc2ad39a56d
net: dsa: tag_sja1105: implement sub-VLAN decoding

Create a subvlan_map as part of each port's tagger private structure.
This keeps reverse mappings of bridge-to-dsa_8021q VLAN retagging rules.

Note that as of this patch, this piece of code is never engaged, due to
the fact that the driver hasn't installed any retagging rule, so we'll
always see packets with a subvlan code of 0 (untagged).

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c
include/linux/dsa/sja1105.h
net/dsa/tag_sja1105.c