net: dsa: tag_8021q: add helpers to deduce whether a VLAN ID is RX or TX VLAN
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 29 Jan 2021 00:59:59 +0000 (02:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Jan 2021 05:24:30 +0000 (21:24 -0800)
commit9c7caf28068421c9e0d1faea437e35e6b8983ac6
treeac93a87dd38ad05dd4348ed454828cd7939831a4
parentde1da8bcf40564a2adada2d5d5426e05355f66e8
net: dsa: tag_8021q: add helpers to deduce whether a VLAN ID is RX or TX VLAN

The sja1105 implementation can be blind about this, but the felix driver
doesn't do exactly what it's being told, so it needs to know whether it
is a TX or an RX VLAN, so it can install the appropriate type of TCAM
rule.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/dsa/8021q.h
net/dsa/tag_8021q.c