]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitccbdb5643365a3ecbb8f5156c8b3dc2e5eb55885
treeac93a87dd38ad05dd4348ed454828cd7939831a4
parent88cc6fccd815fce607700a001f1d71ee0bb42abb
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