]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests: Add IPv6 link-local address generation tests for GRE devices.
authorGuillaume Nault <gnault@redhat.com>
Fri, 2 May 2025 22:57:59 +0000 (00:57 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 6 May 2025 01:08:15 +0000 (18:08 -0700)
commitb6a6006b0e3d10e62c465613f07ff49268baedb1
treef509774ca0c67854b872e05cce50827b56aae3a1
parent3e6a0243ff002ddbd7ee18a8974ae61d2e6ed00d
selftests: Add IPv6 link-local address generation tests for GRE devices.

GRE devices have their special code for IPv6 link-local address
generation that has been the source of several regressions in the past.

Add selftest to check that all gre, ip6gre, gretap and ip6gretap get an
IPv6 link-link local address in accordance with the
net.ipv6.conf.<dev>.addr_gen_mode sysctl.

Note: This patch was originally applied as commit 6f50175ccad4 ("selftests:
  Add IPv6 link-local address generation tests for GRE devices.").
  However, it was then reverted by commit 355d940f4d5a ("Revert "selftests:
  Add IPv6 link-local address generation tests for GRE devices."")
  because the commit it depended on was going to be reverted. Now that
  the situation is resolved, we can add this selftest again (no changes
  since original patch, appart from context update in
  tools/testing/selftests/net/Makefile).
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/2c3a5733cb3a6e3119504361a9b9f89fda570a2d.1746225214.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/gre_ipv6_lladdr.sh [new file with mode: 0755]