]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bridge: Add per-VLAN netlink handling for neigh_forward_grat
authorDanielle Ratson <danieller@nvidia.com>
Mon, 11 May 2026 06:59:35 +0000 (09:59 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 14 May 2026 10:42:11 +0000 (12:42 +0200)
commite65cf8815932c4c06f30cd34db213f45ba2f2a60
tree6fab802ba49c9a28bdc9cc1bc6fbfe77002f65f9
parent2c75c438b9d9db40d4c64b6437eaca67d57a0ee1
bridge: Add per-VLAN netlink handling for neigh_forward_grat

Add netlink handlers for the per-VLAN neigh_forward_grat option via
BRIDGE_VLANDB_ENTRY_NEIGH_FORWARD_GRAT attribute.

The per-VLAN option provides fine-grained control, allowing different
VLANs on the same port to have different gratuitous ARP/unsolicited NA
forwarding behavior.

This enables control via 'bridge' commands:
 # bridge vlan set dev eth0 vid 10 neigh_suppress on
 # bridge vlan set dev eth0 vid 10 neigh_forward_grat on

Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20260511065936.4173106-6-danieller@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/bridge/br_vlan.c
net/bridge/br_vlan_options.c