mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
selftests: mptcp: join: skip fail tests if not supported
commitff8897b518upstream. 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 commit1e39e5a32a("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: https://github.com/multipath-tcp/mptcp_net-next/issues/368 Fixes:b6e074e171("selftests: mptcp: add infinite map testcase") Cc: stable@vger.kernel.org Fixes:2ba18161d4("selftests: mptcp: add MP_FAIL reset testcase") Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f17459121c
commit
53e096bcae
@@ -376,7 +376,7 @@ setup_fail_rules()
|
||||
|
||||
reset_with_fail()
|
||||
{
|
||||
reset "${1}" || return 1
|
||||
reset_check_counter "${1}" "MPTcpExtInfiniteMapTx" || return 1
|
||||
shift
|
||||
|
||||
ip netns exec $ns1 sysctl -q net.mptcp.checksum_enabled=1
|
||||
|
||||
Reference in New Issue
Block a user