* [PATCH v2 net-next] selftests: icmp_redirect: remove xfail support
@ 2026-09-08 9:13 Eric Dumazet
2026-09-10 1:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Eric Dumazet @ 2026-09-08 9:13 UTC (permalink / raw)
To: David S . Miller, Jakub Kicinski, Paolo Abeni
Cc: David Ahern, Ido Schimmel, Simon Horman, netdev, eric.dumazet,
Eric Dumazet
Commit 0a36a75c6818 ("selftests: icmp_redirect: support expected failures")
added xfail support to icmp_redirect.sh because the test "IPv6: mtu
exception plus redirect" was failing at the time due to a perceived
kernel bug described in commit 99513cfa16c6 ("selftest: Fixes for
icmp_redirect test").
However, commit 0e02bf5de46a ("selftests: icmp_redirect: IPv6 PMTU info
should be cleared after redirect") subsequently fixed the test logic:
after redirecting to a new path, the old PMTU information should indeed
be cleared, so the test was adjusted to verify the redirect without the
old PMTU.
Since that fix, the test has been passing and is no longer expected to
fail.
Leaving xfail=1 in log_test() for all IPv6 tests was not only obsolete,
but had the undesirable side effect of masking any future IPv6 failure
as XFAIL instead of FAIL. Furthermore, commit 3748939bce3f ("selftests:
icmp_redirect: pass xfail=0 to log_test()") had to work around a bash
syntax error caused by the empty xfail argument on IPv4 tests.
Remove the obsolete xfail support from log_test() and restore standard
pass/fail reporting across all tests.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
---
v2: more accurate changelog (Ido)
v1: https://lore.kernel.org/netdev/20260907132423.3353361-1-edumazet@google.com/
tools/testing/selftests/net/icmp_redirect.sh | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/tools/testing/selftests/net/icmp_redirect.sh b/tools/testing/selftests/net/icmp_redirect.sh
index b13c89a99ecbaa37638c39b12818d2d59a97ec50..35357d02e823bcad7106cd7d628824d1787af4e7 100755
--- a/tools/testing/selftests/net/icmp_redirect.sh
+++ b/tools/testing/selftests/net/icmp_redirect.sh
@@ -64,14 +64,10 @@ log_test()
local rc=$1
local expected=$2
local msg="$3"
- local xfail=$4
if [ ${rc} -eq ${expected} ]; then
printf "TEST: %-60s [ OK ]\n" "${msg}"
nsuccess=$((nsuccess+1))
- elif [ ${rc} -eq ${xfail} ]; then
- printf "TEST: %-60s [XFAIL]\n" "${msg}"
- nxfail=$((nxfail+1))
else
ret=1
nfail=$((nfail+1))
@@ -303,7 +299,7 @@ check_exception()
ip -netns $h1 ro get ${H1_VRF_ARG} ${H2_N2_IP} | \
grep -E -v 'mtu|redirected' | grep -q "cache"
fi
- log_test $? 0 "IPv4: ${desc}" 0
+ log_test $? 0 "IPv4: ${desc}"
# No PMTU info for test "redirect" and "mtu exception plus redirect"
if [ "$with_redirect" = "yes" ] && [ "$desc" != "redirect exception plus mtu" ]; then
@@ -319,7 +315,7 @@ check_exception()
ip -netns $h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6} | \
grep -v "mtu" | grep -q "${R1_LLADDR}"
fi
- log_test $? 0 "IPv6: ${desc}" 1
+ log_test $? 0 "IPv6: ${desc}"
}
run_ping()
@@ -485,7 +481,6 @@ which ping6 > /dev/null 2>&1 && ping6=$(which ping6) || ping6=$(which ping)
ret=0
nsuccess=0
nfail=0
-nxfail=0
while getopts :pv o
do
@@ -530,6 +525,5 @@ fi
printf "\nTests passed: %3d\n" ${nsuccess}
printf "Tests failed: %3d\n" ${nfail}
-printf "Tests xfailed: %3d\n" ${nxfail}
exit $ret
--
2.55.0.979.g7e5102b832-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 net-next] selftests: icmp_redirect: remove xfail support
2026-09-08 9:13 [PATCH v2 net-next] selftests: icmp_redirect: remove xfail support Eric Dumazet
@ 2026-09-10 1:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-09-10 1:50 UTC (permalink / raw)
To: Eric Dumazet
Cc: davem, kuba, pabeni, dsahern, idosch, horms, netdev, eric.dumazet
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 8 Sep 2026 09:13:27 +0000 you wrote:
> Commit 0a36a75c6818 ("selftests: icmp_redirect: support expected failures")
> added xfail support to icmp_redirect.sh because the test "IPv6: mtu
> exception plus redirect" was failing at the time due to a perceived
> kernel bug described in commit 99513cfa16c6 ("selftest: Fixes for
> icmp_redirect test").
>
> However, commit 0e02bf5de46a ("selftests: icmp_redirect: IPv6 PMTU info
> should be cleared after redirect") subsequently fixed the test logic:
> after redirecting to a new path, the old PMTU information should indeed
> be cleared, so the test was adjusted to verify the redirect without the
> old PMTU.
>
> [...]
Here is the summary with links:
- [v2,net-next] selftests: icmp_redirect: remove xfail support
https://git.kernel.org/netdev/net-next/c/b5a252adbe4a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-10 1:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-08 9:13 [PATCH v2 net-next] selftests: icmp_redirect: remove xfail support Eric Dumazet
2026-09-10 1:50 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.