]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: bridge: add per-port group_fwd_mask with less restrictions
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 27 Sep 2017 13:12:44 +0000 (16:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Sep 2017 05:02:55 +0000 (06:02 +0100)
commit5af48b59f35cf712793badabe1a574a0d0ce3bd3
treed37a58d1a9d1dca19835760305f7a10be68aca5f
parentde9c8a6a5f083b1106300c842108c2452b25a896
net: bridge: add per-port group_fwd_mask with less restrictions

We need to be able to transparently forward most link-local frames via
tunnels (e.g. vxlan, qinq). Currently the bridge's group_fwd_mask has a
mask which restricts the forwarding of STP and LACP, but we need to be able
to forward these over tunnels and control that forwarding on a per-port
basis thus add a new per-port group_fwd_mask option which only disallows
mac pause frames to be forwarded (they're always dropped anyway).
The patch does not change the current default situation - all of the others
are still restricted unless configured for forwarding.
We have successfully tested this patch with LACP and STP forwarding over
VxLAN and qinq tunnels.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_link.h
net/bridge/br_input.c
net/bridge/br_netlink.c
net/bridge/br_private.h
net/bridge/br_sysfs_if.c