History

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.

Nikolay Aleksandrov committed 9 years ago

Commit 5af48b51 parent de9c8a65 files · +42 −2Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/if_link.h+1−0
@@ -325,6 +325,7 @@ enum { · 324 unmodified lines
325325 IFLA_BRPORT_MCAST_TO_UCAST,
326326 IFLA_BRPORT_VLAN_TUNNEL,
327327 IFLA_BRPORT_BCAST_FLOOD,
328+ IFLA_BRPORT_GROUP_FWD_MASK,
328329 __IFLA_BRPORT_MAX
329330 };
330331 #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)