mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
selftests: mptcp: connect: skip disconnect tests if not supported
commit4ad39a42da
upstream. Selftests are supposed to run on any kernels, including the old ones not supporting all MPTCP features. One of them is the full support of disconnections from the userspace introduced by commitb29fcfb54c
("mptcp: full disconnect implementation"). It is possible to look for "mptcp_pm_data_reset" in kallsyms because a preparation patch added it to ease the introduction of the mentioned feature. Link: https://github.com/multipath-tcp/mptcp_net-next/issues/368 Fixes:05be5e273c
("selftests: mptcp: add disconnect tests") Cc: stable@vger.kernel.org Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cba0db9c15
commit
e79e5e7642
1 changed files with 5 additions and 0 deletions
|
@ -782,6 +782,11 @@ run_tests_disconnect()
|
|||
local old_cin=$cin
|
||||
local old_sin=$sin
|
||||
|
||||
if ! mptcp_lib_kallsyms_has "mptcp_pm_data_reset$"; then
|
||||
echo "INFO: Full disconnect not supported: SKIP"
|
||||
return
|
||||
fi
|
||||
|
||||
cat $cin $cin $cin > "$cin".disconnect
|
||||
|
||||
# force do_transfer to cope with the multiple tranmissions
|
||||
|
|
Loading…
Reference in a new issue