From: David Ahern <dsahern@kernel.org>
To: Jakub Kicinski <kuba@kernel.org>
Cc: davem@davemloft.net, netdev@vger.kernel.org, edumazet@google.com,
pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org,
shuah@kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net-next v2] selftests: net: replace sleeps in fcnal-test with waits
Date: Tue, 9 Sep 2025 20:17:34 -0600 [thread overview]
Message-ID: <3a10e26e-5c15-4208-b79f-6fbf5011b8b6@kernel.org> (raw)
In-Reply-To: <20250909170323.5b0dbcc0@kernel.org>
On 9/9/25 6:03 PM, Jakub Kicinski wrote:
> On Tue, 9 Sep 2025 16:59:28 -0600 David Ahern wrote:
>>> This makes some ping tests fail.
>>>
>>> https://netdev-3.bots.linux.dev/vmksft-net/results/289602/129-fcnal-other-sh/stdout
>>> https://netdev-3.bots.linux.dev/vmksft-net/results/289602/128-fcnal-ipv6-sh/stdout
>>>
>>> I only tested with debug kernels, but the non-debug get upset.
>>> I'll resend just the wait_local_port_listen changes. If the change
>>> gets more complex it's probably good to separate them out in the first
>>> place.
>>
>> That is surprising to me. I will take look tomorrow.
>
> Thanks! FWIW I repro'd one with "pause on fail" enabled and trying
> to ping manually also wasn't working. Something odd.
This fixes it:
diff --git a/tools/testing/selftests/net/fcnal-test.sh
b/tools/testing/selftests/net/fcnal-test.sh
index 69941520e8e5..a527e3556763 100755
--- a/tools/testing/selftests/net/fcnal-test.sh
+++ b/tools/testing/selftests/net/fcnal-test.sh
@@ -189,7 +189,7 @@ show_hint()
kill_procs()
{
killall nettest ping ping6 >/dev/null 2>&1
- sleep 1
+ slowwait 2 sh -c 'test -z "$(pgrep '"'^(nettest|ping|ping6)$'"')"'
}
set_ping_group()
@@ -424,6 +424,8 @@ create_ns()
ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.forwarding=1
ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.forwarding=1
+ ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.accept_dad=0
+ ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.accept_dad=0
}
# create veth pair to connect namespaces and apply addresses.
next prev parent reply other threads:[~2025-09-10 2:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-08 20:09 [PATCH net-next v2] selftests: net: replace sleeps in fcnal-test with waits Jakub Kicinski
2025-09-09 22:33 ` Jakub Kicinski
2025-09-09 22:59 ` David Ahern
2025-09-10 0:03 ` Jakub Kicinski
2025-09-10 2:17 ` David Ahern [this message]
2025-09-10 2:34 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3a10e26e-5c15-4208-b79f-6fbf5011b8b6@kernel.org \
--to=dsahern@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox