]> git.baikalelectronics.ru Git - 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)
commitd612b31f6cd1ed0b0a60359018710da849680336
tree8267610ed55c43566e728c570f7b2c7d015cec74
parent470c736b5714d6136b26bccccbc1b02751f98a73
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