]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selftests: mptcp: connect: fix fallback note due to OoO
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Mon, 10 Nov 2025 18:23:40 +0000 (19:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Nov 2025 09:36:04 +0000 (10:36 +0100)
commit 63c643aa7b7287fdbb0167063785f89ece3f000f upstream.

The "fallback due to TCP OoO" was never printed because the stat_ooo_now
variable was checked twice: once in the parent if-statement, and one in
the child one. The second condition was then always true then, and the
'else' branch was never taken.

The idea is that when there are more ACK + MP_CAPABLE than expected, the
test either fails if there was no out of order packets, or a notice is
printed.

Fixes: 69ca3d29a755 ("mptcp: update selftest for fallback due to OoO")
Cc: stable@vger.kernel.org
Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251110-net-mptcp-sft-join-unstable-v1-1-a4332c714e10@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/net/mptcp/mptcp_connect.sh

index b48b4e56826a9cfdb3501242b707ae2ebe29b220..6c2deef673e53b7ebd09af626899244bc15d49cf 100755 (executable)
@@ -493,7 +493,7 @@ do_transfer()
                                  "than expected (${expect_synrx})"
                retc=1
        fi
-       if [ ${stat_ackrx_now_l} -lt ${expect_ackrx} ] && [ ${stat_ooo_now} -eq 0 ]; then
+       if [ ${stat_ackrx_now_l} -lt ${expect_ackrx} ]; then
                if [ ${stat_ooo_now} -eq 0 ]; then
                        mptcp_lib_pr_fail "lower MPC ACK rx (${stat_ackrx_now_l})" \
                                          "than expected (${expect_ackrx})"