]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: fib_tests: fix link-local retrieval in fib6_nexthop()
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Fri, 6 Mar 2026 18:08:19 +0000 (10:08 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Mar 2026 02:17:48 +0000 (19:17 -0700)
commitdc9c9193c7c19a0163552da3a73a1706b7faea12
treef4a32d09145a17d3787c418dfd72031bd7cde7c3
parent51aaf65bbd21e81a0a4d6827fad76ec8873a7703
selftests: fib_tests: fix link-local retrieval in fib6_nexthop()

fib6_nexthop() retrieves the link-local address for two interfaces used
in the test. However, both lldummy and llv1 are obtained from dummy0.

llv1 is expected to be retrieved from veth1, which is the interface used
later in the test. The subsequent check and error message also expect
the address to be retrieved from veth1.

Fix this by retrieving llv1 from veth1.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Link: https://patch.msgid.link/20260306180830.2329477-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/fib_tests.sh