mbox series

[net-next,00/15] mptcp: More selftest coverage and code cleanup for net-next

Message ID 20231027-send-net-next-2023107-v1-0-03eff9452957@kernel.org (mailing list archive)
Headers show
Series mptcp: More selftest coverage and code cleanup for net-next | expand

Message

Mat Martineau Oct. 27, 2023, 10:57 p.m. UTC
Patches 1-5 and 7-8 add selftest coverage (and an associated subflow
counter in the kernel) to validate the recently-updated handling of
subflows with ID 0.

Patch 6 renames a label in the userspace path manager for clarity.

Patches 9-11 and 13-15 factor out common selftest code by moving certain
functions to mptcp_lib.sh

Patch 12 makes sure the random data file generated for selftest
payloads has the intended size.

Signed-off-by: Mat Martineau <martineau@kernel.org>
---
Geliang Tang (15):
      mptcp: add mptcpi_subflows_total counter
      selftests: mptcp: add evts_get_info helper
      selftests: mptcp: add chk_subflows_total helper
      selftests: mptcp: update userspace pm test helpers
      selftests: mptcp: userspace pm create id 0 subflow
      mptcp: userspace pm rename remove_err to out
      selftests: mptcp: userspace pm remove initial subflow
      selftests: mptcp: userspace pm send RM_ADDR for ID 0
      selftests: mptcp: add mptcp_lib_kill_wait
      selftests: mptcp: add mptcp_lib_is_v6
      selftests: mptcp: add mptcp_lib_get_counter
      selftests: mptcp: add missing oflag=append
      selftests: mptcp: add mptcp_lib_make_file
      selftests: mptcp: add mptcp_lib_check_transfer
      selftests: mptcp: add mptcp_lib_wait_local_port_listen

 include/uapi/linux/mptcp.h                         |   1 +
 net/mptcp/pm_userspace.c                           |   8 +-
 net/mptcp/protocol.h                               |   9 +
 net/mptcp/sockopt.c                                |   2 +
 tools/testing/selftests/net/mptcp/diag.sh          |  23 +-
 tools/testing/selftests/net/mptcp/mptcp_connect.sh | 110 ++----
 tools/testing/selftests/net/mptcp/mptcp_join.sh    | 375 ++++++++++++---------
 tools/testing/selftests/net/mptcp/mptcp_lib.sh     |  92 +++++
 tools/testing/selftests/net/mptcp/mptcp_sockopt.sh |  39 +--
 tools/testing/selftests/net/mptcp/simult_flows.sh  |  19 +-
 tools/testing/selftests/net/mptcp/userspace_pm.sh  | 129 +++----
 11 files changed, 401 insertions(+), 406 deletions(-)
---
base-commit: 3a04927f8d4b7a4f008f04af41e31173002eb1ea
change-id: 20231027-send-net-next-2023107-92fac6789701

Best regards,

Comments

Jakub Kicinski Oct. 30, 2023, 6:32 a.m. UTC | #1
On Fri, 27 Oct 2023 15:57:01 -0700 Mat Martineau wrote:
> Patches 1-5 and 7-8 add selftest coverage (and an associated subflow
> counter in the kernel) to validate the recently-updated handling of
> subflows with ID 0.
> 
> Patch 6 renames a label in the userspace path manager for clarity.
> 
> Patches 9-11 and 13-15 factor out common selftest code by moving certain
> functions to mptcp_lib.sh
> 
> Patch 12 makes sure the random data file generated for selftest
> payloads has the intended size.

I was finalizing the PR already when you posted, sorry :(


## Form letter - net-next-closed

The merge window for v6.7 has begun and we have already posted our pull
request. Therefore net-next is closed for new drivers, features, code
refactoring and optimizations. We are currently accepting bug fixes only.

Please repost when net-next reopens after Nov 12th.

RFC patches sent for review only are obviously welcome at any time.

See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle