diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2017-09-27 16:12:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-29 08:02:55 +0300 |
commit | 5af48b59f35cf712793badabe1a574a0d0ce3bd3 (patch) | |
tree | d37a58d1a9d1dca19835760305f7a10be68aca5f /net/bridge/br_input.c | |
parent | de9c8a6a5f083b1106300c842108c2452b25a896 (diff) | |
download | linux-5af48b59f35cf712793badabe1a574a0d0ce3bd3.tar.xz |
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>
Diffstat (limited to 'net/bridge/br_input.c')
-rw-r--r-- | net/bridge/br_input.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c index 7637f58c1226..7cb613776b31 100644 --- a/net/bridge/br_input.c +++ b/net/bridge/br_input.c @@ -289,6 +289,7 @@ rx_handler_result_t br_handle_frame(struct sk_buff **pskb) * * Others reserved for future standardization */ + fwd_mask |= p->group_fwd_mask; switch (dest[5]) { case 0x00: /* Bridge Group Address */ /* If STP is turned off, |