Skip to content

Add support for neigh_forward_grat

Danielle Ratson netdev 1 version Applied

Status from this message: This series was applied to iproute2/iproute2-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2iplink: bridge_slave: Add support for neigh_forward_gratbridge/link.c ip/iplink_bridge_slave.c man/man8/bridge.8 +1 more+44 -02 replies
2/2bridge: vlan: Add support for neigh_forward_gratbridge/vlan.c man/man8/bridge.8+32 -13 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchIdo SchimmelPetr MachataNikolay Aleksandrov
1/2R-b R-b A-b A-b
2/2R-b R-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH iproute2-next 0/2] Add support for neigh_forward_grat

The existing neighbor suppression unconditionally suppresses gratuitous ARP and unsolicited Neighbor Advertisements, which breaks legitimate use cases like Multi-Homing and EVPN where these announcements need to propagate across the VXLAN fabric.

This series adds a new neigh_forward_grat option that provides independent control of gratuitous ARP and unsolicited NA forwarding. When neigh_suppress is enabled and neigh_forward_grat is also enabled, regular neighbor discovery is suppressed while gratuitous announcements are forwarded.

Both port-level control (via IFLA_BRPORT_NEIGH_FORWARD_GRAT) and per-VLAN control (via BRIDGE_VLANDB_ENTRY_NEIGH_FORWARD_GRAT) are provided. The default value of OFF preserves existing behavior.

The new attributes use NLA_U8, although the kernel netlink guideline recommends NLA_U32 as the minimum integer type on the grounds that alignment makes smaller types equivalent on the wire. For a simple on/off attribute there is no technical advantage to u32 over u8, and keeping u8 preserves consistency with all surrounding bridge port attributes and avoids introducing new helpers alongside the existing infrastructure.

Patch #1: adds port-level support via ip link and bridge link commands. Patch #2: adds per-VLAN support via bridge vlan command.

Danielle Ratson (2):
iplink: bridge_slave: Add support for neigh_forward_grat
bridge: vlan: Add support for neigh_forward_grat

 bridge/link.c            | 14 ++++++++++++++
 bridge/vlan.c            | 18 ++++++++++++++++++
 ip/iplink_bridge_slave.c | 10 ++++++++++
 man/man8/bridge.8        | 25 ++++++++++++++++++++++++-
 man/man8/ip-link.8.in    | 10 ++++++++++
 5 files changed, 76 insertions(+), 1 deletion(-)
Signature · 1 line
2.51.0