]> 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)
commitdea662db693158dc1840e507b1a29874f4619f12
treeac93a87dd38ad05dd4348ed454828cd7939831a4
parente30df49f93c11337b5eb780c80d934e315e87185
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