]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests: net: add a hint about MACAddressPolicy=persistent
authorJakub Kicinski <kuba@kernel.org>
Thu, 27 Nov 2025 19:45:56 +0000 (11:45 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 1 Dec 2025 20:02:13 +0000 (12:02 -0800)
New NIPA installation had been reporting a few flaky tests.
arp_ndisc_evict_nocarrier is most flaky of them all.
I suspect that the flakiness is due to udev swapping the MAC
addresses on the interfaces. Extend the message in
arp_ndisc_evict_nocarrier to hint at this potential issue.
Having the neigh get fail right after ping is rather unusual,
unless udev changes the MAC addr causing a flush in the meantime.

Link: https://patch.msgid.link/20251127194556.2409574-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/arp_ndisc_evict_nocarrier.sh

index 92eb880c52f2808541770fffae8b65ae2bc2078c..00758f00efbfad1991eb0cd4a5c6c7a860ca248e 100755 (executable)
@@ -75,7 +75,7 @@ setup_v4() {
     ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
     if [ $? -ne 0 ]; then
         cleanup_v4
-        echo "failed"
+        echo "failed; is the system using MACAddressPolicy=persistent ?"
         exit 1
     fi