]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc38ccd8e06ed7f91c47f81af02c15a66e728ea8
treebce4153c39a9dabf1c7d562db02a2f77787b058f
parent21f3f5bef402570ad3537a71b37b7a3f48b42ac1
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