]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests: mptcp: connect: cover splice mode
authorGeliang Tang <tanggeliang@kylinos.cn>
Fri, 30 Jan 2026 19:24:29 +0000 (20:24 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Feb 2026 02:15:32 +0000 (18:15 -0800)
The "splice" alternate mode for mptcp_connect.sh/.c is available now,
this patch adds mptcp_connect_splice.sh to test it in the MPTCP CI by
default.

Note that this mode is also supported by stable kernel versions, but
optimised in this patch series.

Suggested-by: Matthieu Baerts <matttbe@kernel.org>
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260130-net-next-mptcp-splice-v2-6-31332ba70d7f@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/Makefile
tools/testing/selftests/net/mptcp/mptcp_connect_splice.sh [new file with mode: 0755]

index 4dd6278cd3dd25328f3f32cca061d18de4e48a66..22ba0da2adb85dad477f9d509fb3684342ed8f40 100644 (file)
@@ -11,6 +11,7 @@ TEST_PROGS := \
        mptcp_connect_checksum.sh \
        mptcp_connect_mmap.sh \
        mptcp_connect_sendfile.sh \
+       mptcp_connect_splice.sh \
        mptcp_join.sh \
        mptcp_sockopt.sh \
        pm_netlink.sh \
diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect_splice.sh b/tools/testing/selftests/net/mptcp/mptcp_connect_splice.sh
new file mode 100755 (executable)
index 0000000..241254a
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+
+MPTCP_LIB_KSFT_TEST="$(basename "${0}" .sh)" \
+       "$(dirname "${0}")/mptcp_connect.sh" -m splice "${@}"