Re: [PATCH net-next 6/6] selftests: net: Add tests for neigh_forward_grat option
Nikolay Aleksandrov <[email protected]> Mon, 4 May 2026 10:44:10 +0300
| Newsgroups | dev.linux.lists.bridge,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On 03/05/2026 10:35, Danielle Ratson wrote: > Add tests to validate the neigh_forward_grat bridge option for selective > forwarding of gratuitous neighbor announcements. > > The tests verify per-port and per-VLAN control of gratuitous neighbor > announcement forwarding for both IPv4 (gratuitous ARP) and IPv6 > (unsolicited NA): > - When neigh_suppress is enabled with neigh_forward_grat off (default), > gratuitous announcements are suppressed > - When neigh_forward_grat is enabled, gratuitous announcements are > forwarded while regular neighbor discovery remains suppressed > > For IPv4, use arping to send gratuitous ARP packets. For IPv6, use > mausezahn to craft unsolicited Neighbor Advertisement packets. > > For the per-port tests, the IPv4 test exercises the ip link interface, > while the IPv6 test exercises the bridge link interface. > The per-VLAN tests use the bridge interface throughout, as per-VLAN > attributes are only accessible via 'bridge vlan'. > > Signed-off-by: Danielle Ratson <[email protected]> > --- > .../net/test_bridge_neigh_suppress.sh | 298 +++++++++++++++++- > 1 file changed, 296 insertions(+), 2 deletions(-) > Acked-by: Nikolay Aleksandrov <[email protected]>