Skip to content

Commit ff8897b

Browse files
matttbekuba-moo
authored andcommitted
selftests: mptcp: join: skip fail tests if not supported
Selftests are supposed to run on any kernels, including the old ones not supporting all MPTCP features. One of them is the support of the MP_FAIL / infinite mapping introduced by commit 1e39e5a ("mptcp: infinite mapping sending") and the following ones. It is possible to look for one of the infinite mapping counters to know in advance if the this feature is available. Link: multipath-tcp/mptcp_net-next#368 Fixes: b6e074e ("selftests: mptcp: add infinite map testcase") Cc: stable@vger.kernel.org Fixes: 2ba1816 ("selftests: mptcp: add MP_FAIL reset testcase") Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent f2b492b commit ff8897b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/net/mptcp/mptcp_join.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ setup_fail_rules()
384384

385385
reset_with_fail()
386386
{
387-
reset "${1}" || return 1
387+
reset_check_counter "${1}" "MPTcpExtInfiniteMapTx" || return 1
388388
shift
389389

390390
ip netns exec $ns1 sysctl -q net.mptcp.checksum_enabled=1

0 commit comments

Comments
 (0)