Skip to content

add locking to PM APis, implement PM netlink

Paolo Abeni mptcp 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 5 repliesIn review
  2. v39 patches 18 repliesSuperseded
  3. v29 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches1 replySuperseded

Changes in v4 from the cover letter

- many cleanup and netlink fixes (Matt) - see individual patches changelog for the details

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Squash-to: "mptcp: Add ADD_ADDR handling"net/mptcp/options.c net/mptcp/protocol.h+0 -60 replies
2/9Squash-to: "mptcp: Add path manager interface"net/mptcp/options.c net/mptcp/pm.c net/mptcp/protocol.c +1 more+123 -1390 replies
3/9Squash-to: "mptcp: Add handling of incoming MP_JOIN requests"net/mptcp/options.c net/mptcp/subflow.c+9 -30 replies
4/9Squash-to: "mptcp: Add handling of outgoing MP_JOIN requests"net/mptcp/options.c net/mptcp/protocol.h net/mptcp/subflow.c+50 -190 replies
5/9Squash-to: "mptcp: Implement path manager interface commands"net/mptcp/pm.c+90 -1370 replies
6/9Squash-to: subflow: place further subflows on new 'join_list'net/mptcp/protocol.c+5 -70 replies
7/9mptcp: add netlink based PMinclude/uapi/linux/mptcp.h net/mptcp/Makefile net/mptcp/pm.c +2 more+908 -24 replies
8/9selftests: add PM netlink functional teststools/testing/selftests/net/mptcp/Makefile tools/testing/selftests/net/mptcp/pm_netlink.sh tools/testing/selftests/net/mptcp/pm_nl_ctl.c+731 -30 replies
9/9selftests: add test-cases for MPTCP MP_JOINtools/testing/selftests/net/mptcp/Makefile tools/testing/selftests/net/mptcp/mptcp_connect.c tools/testing/selftests/net/mptcp/mptcp_join.sh+314 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [MPTCP] [PATCH v4 0/9] add locking to PM APis, implement PM netlink

This implement the locking required by the PM to allow concurent subflow accessing the msk PM data in a safe way. Such data is protected via a msk-level spinlock. It relies on the Double checked locking to avoid contention in the most common scenarion (no or very little PM "actions").

Additionally changes more than a bit the PM hooks/APIs, to be hopefully simpler and avoiding duplicate code (no v4/v6 variant, work queue management done by the core PM infra).

It also introduce the PM netlink - it replace the current basic ones, the related patch has been dropped locally.

git tree available at:

https://github.com/pabeni/mptcp/tree/mptcp_net-next_part3_7

changes from v3:
- many cleanup and netlink fixes (Matt) - see individual patches changelog for the details

changes from v2:
- hook the new tests into the self-tests infra

changes from v1:
- 2 new patches: mp_join self-tests (9/9) and a specific mp_join fix (6/9)
- fixed several bugs as pointed out by the above tests
- added support for bind to interface

changes from RFC:
- cleanup uAPIs
- added self-tests for the uAPIs
- fixed ton of bugs
- included feedback from Mat

 include/uapi/linux/mptcp.h                        |   53 +
 net/mptcp/Makefile                                |    3 
 net/mptcp/options.c                               |   60 -
 net/mptcp/pm.c                                    |  361 +++------
 net/mptcp/pm_netlink.c                            |  829 ++++++++++++++++++++++
 net/mptcp/protocol.c                              |   14 
 net/mptcp/protocol.h                              |  113 +-
 net/mptcp/subflow.c                               |   65 +
 tools/testing/selftests/net/mptcp/Makefile        |    9 
 tools/testing/selftests/net/mptcp/mptcp_connect.c |   19 
 tools/testing/selftests/net/mptcp/mptcp_join.sh   |  296 +++++++
 tools/testing/selftests/net/mptcp/pm_netlink.sh   |  123 +++
 tools/testing/selftests/net/mptcp/pm_nl_ctl.c     |  604 ++++++++++++++++
 13 files changed, 2230 insertions(+), 319 deletions(-)