mbox series

[net-next,v2,0/8] mptcp: various small and unrelated improvements

Message ID 20250413-net-next-mptcp-sched-mib-sft-misc-v2-0-0f83a4350150@kernel.org
Headers show
Series mptcp: various small and unrelated improvements | expand

Message

Matthieu Baerts (NGI0) April 13, 2025, 9:34 a.m. UTC
Here are various unrelated patches:

- Patch 1: sched: remove unused structure.

- Patch 2: sched: split the validation part, a preparation for later.

- Patch 3: pm: clarify code, not to think there is a possible UaF.
  Note: a previous version has already been sent individually to Netdev.

- Patch 4: subflow: simplify subflow_hmac_valid by passing subflow_req.

- Patch 5: mib: add counter for MPJoin rejected by the PM.

- Patch 6: selftests: validate this new MPJoinRejected counter.

- Patch 7: selftests: define nlh variable only where needed.

- Patch 8: selftests: show how to use IPPROTO_MPTCP with getaddrinfo.
  Note: a previous version has already been sent individually to Netdev.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Changes in v2:
- Force b4 to use 'git show' with '--no-mailmap' not to modify patches
  2 and 7/8. The code has not been modified.
- Link to v1: https://lore.kernel.org/r/20250411-net-next-mptcp-sched-mib-sft-misc-v1-0-85ac8c6654c3@kernel.org

---
Geliang Tang (2):
      mptcp: sched: split validation part
      selftests: mptcp: diag: drop nlh parameter of recv_nlmsg

Matthieu Baerts (NGI0) (4):
      mptcp: sched: remove mptcp_sched_data
      mptcp: pass right struct to subflow_hmac_valid
      mptcp: add MPJoinRejected MIB counter
      selftests: mptcp: validate MPJoinRejected counter

Thorsten Blum (1):
      mptcp: pm: Return local variable instead of freed pointer

zhenwei pi (1):
      selftests: mptcp: use IPPROTO_MPTCP for getaddrinfo

 include/net/mptcp.h                               | 13 ++-------
 net/mptcp/mib.c                                   |  1 +
 net/mptcp/mib.h                                   |  1 +
 net/mptcp/pm.c                                    |  5 +++-
 net/mptcp/protocol.c                              |  4 ++-
 net/mptcp/protocol.h                              |  1 +
 net/mptcp/sched.c                                 | 35 ++++++++++++++---------
 net/mptcp/subflow.c                               | 12 ++++----
 tools/testing/selftests/net/mptcp/mptcp_connect.c | 21 +++++++++++---
 tools/testing/selftests/net/mptcp/mptcp_diag.c    |  7 ++---
 tools/testing/selftests/net/mptcp/mptcp_join.sh   | 26 +++++++++++++----
 11 files changed, 80 insertions(+), 46 deletions(-)
---
base-commit: 6a325aed130bb68790e765f923e76ec5669d2da7
change-id: 20250411-net-next-mptcp-sched-mib-sft-misc-25f5a6218fd8

Best regards,