mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net] selftests: net: big_tcp_tunnels: Fix the IPv6 route change
@ 2026-10-07  1:47 Haishuang Yan
  2026-10-08  4:43 ` Narcisa Vasile
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Haishuang Yan @ 2026-10-07  1:47 UTC (permalink / raw)
  To: netdev
  Cc: Alice Mikityanska, Matthieu Baerts, David S . Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman,
	Shuah Khan, linux-kselftest, linux-kernel, Haishuang Yan

On slow machines, do_test() raises initcwnd on the route into the tunnel
with "ip route change". For IPv6 traffic this fails with:

  RTNETLINK answers: No such file or directory

The IPv6 prefix route of the tunnel address has metric 256, while
"ip -6 route change" without a metric looks for a route with the default
metric 1024, so nothing is changed. The test still passes, but without
the larger initcwnd it is meant to use.

Pass the metric of the prefix route.

Fixes: 1d62b83fb751 ("selftests: net: Fix slow configurations in big_tcp_tunnels.sh")
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
---
 tools/testing/selftests/net/big_tcp_tunnels.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/big_tcp_tunnels.sh b/tools/testing/selftests/net/big_tcp_tunnels.sh
index cc0875e52fb9..fb43fed824e3 100755
--- a/tools/testing/selftests/net/big_tcp_tunnels.sh
+++ b/tools/testing/selftests/net/big_tcp_tunnels.sh
@@ -145,7 +145,8 @@ do_test() {
 			    route change 192.168.2.0/24 dev tun0 initcwnd 100
 		else
 			ip -netns "$CLIENT_NS" -6 \
-			    route change 2001:db8::2:0/112 dev tun0 initcwnd 100
+			    route change 2001:db8::2:0/112 dev tun0 initcwnd 100 \
+			    metric 256
 		fi
 	else
 		ip netns exec "$CLIENT_NS" \
-- 
2.43.0




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-09 11:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07  1:47 [PATCH net] selftests: net: big_tcp_tunnels: Fix the IPv6 route change Haishuang Yan
2026-10-08  4:43 ` Narcisa Vasile
2026-10-08 18:10 ` patchwork-bot+netdevbpf
2026-10-09 10:59 ` Alice Mikityanska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®