net: bridge: resolve forwarding path for VLAN tag actions in bridge devices
authorFelix Fietkau <nbd@nbd.name>
Wed, 24 Mar 2021 01:30:35 +0000 (02:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Mar 2021 19:48:38 +0000 (12:48 -0700)
commitbcf2766b1377421b7c9259865b25c1b62a7fa686
treebce4153c39a9dabf1c7d562db02a2f77787b058f
parentec9d16bab615ceda8ac22a7b4d2c7601bbe172cb
net: bridge: resolve forwarding path for VLAN tag actions in bridge devices

Depending on the VLAN settings of the bridge and the port, the bridge can
either add or remove a tag. When vlan filtering is enabled, the fdb lookup
also needs to know the VLAN tag/proto for the destination address
To provide this, keep track of the stack of VLAN tags for the path in the
lookup context

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/8021q/vlan_dev.c
net/bridge/br_device.c
net/bridge/br_private.h
net/bridge/br_vlan.c