[PATCH mptcp-next v6 09/10] selftests: mptcp: connect: cover zerocopy mode
Geliang Tang <[email protected]> Thu, 16 Jul 2026 15:50:48 +0800
| Newsgroups | dev.linux.lists.mptcp |
|---|---|
| Message-ID | <eba3868cf54ce4c28ab5aa0fc4b6bce26e1fe5a4.1784188064.git.tanggeliang@kylinos.cn> |
From: Geliang Tang <[email protected]> Add a new test script mptcp_connect_zerocopy.sh to run the mptcp_connect selftest with the zerocopy I/O mode. This ensures the MSG_ZEROCOPY path is exercised in the regular test suite. The script follows the same pattern as the existing mmap, sendfile, and splice test wrappers, invoking mptcp_connect.sh with the -m zerocopy option. Signed-off-by: Geliang Tang <[email protected]> --- tools/testing/selftests/net/mptcp/Makefile | 1 + tools/testing/selftests/net/mptcp/mptcp_connect_zerocopy.sh | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 tools/testing/selftests/net/mptcp/mptcp_connect_zerocopy.sh diff --git a/tools/testing/selftests/net/mptcp/Makefile b/tools/testing/selftests/net/mptcp/Makefile index 22ba0da2adb8..9e47ecfe58e2 100644 --- a/tools/testing/selftests/net/mptcp/Makefile +++ b/tools/testing/selftests/net/mptcp/Makefile @@ -12,6 +12,7 @@ TEST_PROGS := \ mptcp_connect_mmap.sh \ mptcp_connect_sendfile.sh \ mptcp_connect_splice.sh \ + mptcp_connect_zerocopy.sh \ mptcp_join.sh \ mptcp_sockopt.sh \ pm_netlink.sh \ diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect_zerocopy.sh b/tools/testing/selftests/net/mptcp/mptcp_connect_zerocopy.sh new file mode 100755 index 000000000000..0220d29ad68e --- /dev/null +++ b/tools/testing/selftests/net/mptcp/mptcp_connect_zerocopy.sh @@ -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 zerocopy "${@}" -- 2.53.0