Skip to content

mptcp: Add userspace PM mode to bypass kernel PM

Mat Martineau mptcp 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 2 repliesIn review
  2. v36 patches 0 repliesSuperseded
  3. v26 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches3 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mptcp: Remove redundant assignments in path manager initnet/mptcp/pm.c net/mptcp/pm_netlink.c net/mptcp/protocol.h+18 -270 replies
2/6mptcp: Add a member to mptcp_pm_data to track kernel vs userspace modenet/mptcp/pm.c net/mptcp/protocol.h+13 -00 replies
3/6mptcp: Bypass kernel PM when userspace PM is enablednet/mptcp/pm.c net/mptcp/protocol.h+6 -10 replies
4/6mptcp: Make kernel path manager check for userspace-managed socketsnet/mptcp/pm_netlink.c+12 -60 replies
5/6mptcp: Add a per-namespace sysctl to set the default path manager typeDocumentation/networking/mptcp-sysctl.rst net/mptcp/ctrl.c net/mptcp/pm.c +1 more+63 -110 replies
6/6selftests: mptcp: Add tests for userspace PM typetools/testing/selftests/net/mptcp/mptcp_join.sh+69 -10 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGeliang TangPaolo Abeni
SeriesA-b
1/6
2/6
3/6
4/6
5/6
6/6T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH mptcp-next v4 0/6] mptcp: Add userspace PM mode to bypass kernel PM

One part of supporting userspace path managers is to prevent the in-kernel PM from acting on userspace-managed MPTCP connections.

These patches:

* Add a per-MPTCP-socket 'pm_type'. A mix of kernel-managed and userspace-managed connections are supported within each namespace.

* Conditionally decouple incoming ADD_ADDR/RM_ADDR and subflow changes from the in-kernel PM. Netlink events are still triggered, and ADD_ADDR echo handling is still in kernel code even if path management is otherwise handled in userspace.

* Add a sysctl for setting the per-namespace default for in-kernel vs userspace path management of new MPTCP sockets. This is an integer value to allow extensibility.

* Add selftests to confirm that the in-kernel PM is bypassed.

RFC -> v1: Changed sysctl from a bool to an integer, added patch 1 (cleanup) and patch 6 (selftests), fixed ADD_ADDR echo and initial pm->subflows_allowed settings.

v1 -> v2: Rebased on latest export branch, removed extra kernel-mode check when receiving ADD_ADDR, and fix !CONFIG_SYSCTL build.

v2 -> v3: Rebased on latest export branch, use helper function for PM mode, clarify initialization logic for userspace vs. kernel PM, add a Tested-by tag from v2 review.

v3 -> v4: Rebased on latest export branch and resolved conflicts

Mat Martineau (6):
mptcp: Remove redundant assignments in path manager init
mptcp: Add a member to mptcp_pm_data to track kernel vs userspace mode
mptcp: Bypass kernel PM when userspace PM is enabled
mptcp: Make kernel path manager check for userspace-managed sockets
mptcp: Add a per-namespace sysctl to set the default path manager type
selftests: mptcp: Add tests for userspace PM type

 Documentation/networking/mptcp-sysctl.rst     | 18 +++++
 net/mptcp/ctrl.c                              | 21 ++++++
 net/mptcp/pm.c                                | 50 +++++++++----
 net/mptcp/pm_netlink.c                        | 30 ++++----
 net/mptcp/protocol.h                          | 16 ++++-
 .../testing/selftests/net/mptcp/mptcp_join.sh | 70 ++++++++++++++++++-
 6 files changed, 170 insertions(+), 35 deletions(-)

base-commit: 81706660508b6caa94d0fbeb8875882f155c73a9

Signature · 1 line
2.34.1