Skip to content

Commit ef51fbb

Browse files
matttbegregkh
authored andcommitted
selftests: mptcp: connect: fix fallback note due to OoO
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: 69ca3d2 ("mptcp: update selftest for fallback due to OoO") Cc: [email protected] Reviewed-by: Geliang Tang <[email protected]> Signed-off-by: Matthieu Baerts (NGI0) <[email protected]> Link: https://patch.msgid.link/20251110-net-mptcp-sft-join-unstable-v1-1-a4332c714e10@kernel.org Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e80e082 commit ef51fbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ do_transfer()
492492
"than expected (${expect_synrx})"
493493
retc=1
494494
fi
495-
if [ ${stat_ackrx_now_l} -lt ${expect_ackrx} ] && [ ${stat_ooo_now} -eq 0 ]; then
495+
if [ ${stat_ackrx_now_l} -lt ${expect_ackrx} ]; then
496496
if [ ${stat_ooo_now} -eq 0 ]; then
497497
mptcp_lib_pr_fail "lower MPC ACK rx (${stat_ackrx_now_l})" \
498498
"than expected (${expect_ackrx})"

0 commit comments

Comments
 (0)