[PATCH net-next 0/4] mptcp: pm: in-kernel: fullmesh endp nb + bind cases

Matthieu Baerts (NGI0) posted 4 patches 3 weeks, 4 days ago
Failed in applying to current master (apply log)
include/uapi/linux/mptcp.h                        |   3 +-
net/mptcp/pm_kernel.c                             |  36 ++++-
net/mptcp/protocol.h                              |   1 +
net/mptcp/sockopt.c                               |   2 +
tools/testing/selftests/net/mptcp/mptcp_connect.c |  10 +-
tools/testing/selftests/net/mptcp/mptcp_join.sh   | 187 +++++++++++++++++++---
6 files changed, 213 insertions(+), 26 deletions(-)
[PATCH net-next 0/4] mptcp: pm: in-kernel: fullmesh endp nb + bind cases
Posted by Matthieu Baerts (NGI0) 3 weeks, 4 days ago
Here is a small optimisation for the in-kernel PM, joined by a small
behavioural change to avoid confusions, and followed by a few more
tests.

- Patch 1: record fullmesh endpoints numbers, not to iterate over all
  endpoints to check if one is marked as fullmesh.

- Patch 2: when at least one endpoint is marked as fullmesh, only use
  these endpoints when reacting to an ADD_ADDR, even if there are no
  endpoints for this IP family: this is less confusing.

- Patch 3: reduce duplicated code to prepare the next patch.

- Patch 4: extra "bind" cases: the listen socket restrict the bind to
  one IP address, not allowing MP_JOIN to extra IP addresses, except if
  another listening socket accepts them.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Matthieu Baerts (NGI0) (4):
      mptcp: pm: in-kernel: record fullmesh endp nb
      mptcp: pm: in kernel: only use fullmesh endp if any
      selftests: mptcp: join: do_transfer: reduce code dup
      selftests: mptcp: join: validate extra bind cases

 include/uapi/linux/mptcp.h                        |   3 +-
 net/mptcp/pm_kernel.c                             |  36 ++++-
 net/mptcp/protocol.h                              |   1 +
 net/mptcp/sockopt.c                               |   2 +
 tools/testing/selftests/net/mptcp/mptcp_connect.c |  10 +-
 tools/testing/selftests/net/mptcp/mptcp_join.sh   | 187 +++++++++++++++++++---
 6 files changed, 213 insertions(+), 26 deletions(-)
---
base-commit: 01cc760632b875c4ad0d8fec0b0c01896b8a36d4
change-id: 20251101-net-next-mptcp-fm-endp-nb-bind-cf7ab688d9f1

Best regards,
-- 
Matthieu Baerts (NGI0) <matttbe@kernel.org>
Re: [PATCH net-next 0/4] mptcp: pm: in-kernel: fullmesh endp nb + bind cases
Posted by patchwork-bot+netdevbpf@kernel.org 3 weeks, 1 day ago
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sat, 01 Nov 2025 18:56:50 +0100 you wrote:
> Here is a small optimisation for the in-kernel PM, joined by a small
> behavioural change to avoid confusions, and followed by a few more
> tests.
> 
> - Patch 1: record fullmesh endpoints numbers, not to iterate over all
>   endpoints to check if one is marked as fullmesh.
> 
> [...]

Here is the summary with links:
  - [net-next,1/4] mptcp: pm: in-kernel: record fullmesh endp nb
    https://git.kernel.org/netdev/net-next/c/f88191c7f361
  - [net-next,2/4] mptcp: pm: in kernel: only use fullmesh endp if any
    https://git.kernel.org/netdev/net-next/c/e461e8a799a2
  - [net-next,3/4] selftests: mptcp: join: do_transfer: reduce code dup
    https://git.kernel.org/netdev/net-next/c/4a6220a453c8
  - [net-next,4/4] selftests: mptcp: join: validate extra bind cases
    https://git.kernel.org/netdev/net-next/c/5c59df126bae

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html