[PATCH mptcp-next v4 2/2] selftests: mptcp: remove add_addr_timeout settings

Geliang Tang posted 2 patches 1 month ago
[PATCH mptcp-next v4 2/2] selftests: mptcp: remove add_addr_timeout settings
Posted by Geliang Tang 1 month ago
From: Geliang Tang <tanggeliang@kylinos.cn>

Now that add_addr_timeout can be dynamically adjusted, there is no need
to set specific timeout values in the mptcp_join.sh tests. This patch
removes the explicit sysctl settings for net.mptcp.add_addr_timeout
from the test scripts.

The change simplifies the test setup and ensures the tests work with
the default or dynamically adjusted timeout values.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
 tools/testing/selftests/net/mptcp/mptcp_join.sh | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh
index 82cae37d9c20..e85bb62046e0 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh
@@ -347,8 +347,6 @@ reset_with_add_addr_timeout()
 		tables="${ip6tables}"
 	fi
 
-	ip netns exec $ns1 sysctl -q net.mptcp.add_addr_timeout=1
-
 	if ! ip netns exec $ns2 $tables -A OUTPUT -p tcp \
 			-m tcp --tcp-option 30 \
 			-m bpf --bytecode \
@@ -2183,7 +2181,6 @@ signal_address_tests()
 		pm_nl_add_endpoint $ns2 10.0.4.2 flags signal
 
 		# the peer could possibly miss some addr notification, allow retransmission
-		ip netns exec $ns1 sysctl -q net.mptcp.add_addr_timeout=1
 		speed=slow \
 			run_tests $ns1 $ns2 10.0.1.1
 
-- 
2.48.1
Re: [PATCH mptcp-next v4 2/2] selftests: mptcp: remove add_addr_timeout settings
Posted by Matthieu Baerts 2 weeks, 1 day ago
Hi Geliang,

On 12/08/2025 10:39, Geliang Tang wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
> 
> Now that add_addr_timeout can be dynamically adjusted, there is no need
> to set specific timeout values in the mptcp_join.sh tests. This patch
> removes the explicit sysctl settings for net.mptcp.add_addr_timeout
> from the test scripts.

I don't think we should remove them: when looking at mptcp_join.sh, I
see that chk_add_nr() and chk_add_tx_nr() are more tolerant with
retransmissions.

Linked to that, I see that some tests are failing because too many
ADD_ADDR are seen:

https://github.com/multipath-tcp/mptcp_net-next/actions/runs/17391054770
https://netdev-3.bots.linux.dev/vmksft-mptcp-dbg/results/280241/1-mptcp-join-sh/stdout
https://netdev-3.bots.linux.dev/vmksft-mptcp-dbg/results/279881/1-mptcp-join-sh/stdout

I wonder if it would not be better to always check for fewer ADD_ADDR
than expected.

Also, for this one:

https://netdev-3.bots.linux.dev/vmksft-mptcp-dbg/results/277181/1-mptcp-join-sh/stdout

Probably we should mark the test as "slow".

I will try to look at that.

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.