linux/tools/testing/selftests/net/mptcp
Matthieu Baerts (NGI0) 5368a67307 selftests: mptcp: connect: -f: no reconnect
The '-f' parameter is there to force the kernel to emit MPTCP FASTCLOSE
by closing the connection with unread bytes in the receive queue.

The xdisconnect() helper was used to stop the connection, but it does
more than that: it will shut it down, then wait before reconnecting to
the same address. This causes the mptcp_join's "fastclose test" to fail
all the time.

This failure is due to a recent change, with commit 218cc16632
("selftests: mptcp: avoid spurious errors on disconnect"), but that went
unnoticed because the test is currently ignored. The recent modification
only shown an existing issue: xdisconnect() doesn't need to be used
here, only the shutdown() part is needed.

Fixes: 6bf41020b7 ("selftests: mptcp: update and extend fastclose test-cases")
Cc: stable@vger.kernel.org
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250204-net-mptcp-sft-conn-f-v1-1-6b470c72fffa@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-02-05 17:54:32 -08:00
..
.gitignore selftests: mptcp: add inq test case 2021-12-07 11:36:30 -08:00
Makefile selftests: mptcp: extend CFLAGS to keep options from environment 2025-01-27 14:45:19 -08:00
config selftests: mptcp: add missing kconfig for NF Mangle 2024-02-01 09:06:37 -08:00
diag.sh selftests: mptcp: diag: remove trailing whitespace 2024-09-09 16:52:04 -07:00
mptcp_connect.c selftests: mptcp: connect: -f: no reconnect 2025-02-05 17:54:32 -08:00
mptcp_connect.sh selftests: mptcp: connect: better display the files size 2025-01-15 13:21:15 -08:00
mptcp_inq.c selftests/net: mptcp: fix uninitialized variable warnings 2023-11-27 18:12:07 -08:00
mptcp_join.sh selftests: mptcp: move stats info in case of errors to lib.sh 2025-01-15 13:21:15 -08:00
mptcp_lib.sh selftests: mptcp: add -m with ss in case of errors 2025-01-15 13:21:15 -08:00
mptcp_sockopt.c selftests: mptcp: add MPTCP_FULL_INFO testcase 2023-06-21 22:45:58 -07:00
mptcp_sockopt.sh selftests: mptcp: move stats info in case of errors to lib.sh 2025-01-15 13:21:15 -08:00
pm_netlink.sh selftests: mptcp: reset the last TS before the first test 2024-09-09 16:52:04 -07:00
pm_nl_ctl.c selftests: mptcp: pm_nl_ctl: remove re-definition 2024-09-03 15:25:43 -07:00
settings selftests: mptcp: increase timeout to 30 min 2024-02-01 09:06:37 -08:00
simult_flows.sh selftests: mptcp: move stats info in case of errors to lib.sh 2025-01-15 13:21:15 -08:00
userspace_pm.sh selftests: mptcp: reset the last TS before the first test 2024-09-09 16:52:04 -07:00