]> 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)
commitdc3006d782ecccab985dff6e024a3da5e71d743c
tree8267610ed55c43566e728c570f7b2c7d015cec74
parent78a6463b3539a8df8f38060d679384ee380a9402
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