Skip to content

mptcp: improve accept() and disconnect()

Paolo Abeni mptcp 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 2 repliesIn review
  2. v17 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- update mptcp_connect argument lists and usage() in patch 7/7

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7mptcp: keep snd_una updated for fallback socketnet/mptcp/protocol.c+1 -00 replies
2/7mptcp: never allow the PM to close a listener subflownet/mptcp/pm_netlink.c+3 -00 replies
3/7mptcp: implement fastclose xmit pathnet/mptcp/options.c net/mptcp/protocol.h+42 -160 replies
4/7mptcp: full disconnect implementationnet/mptcp/pm.c net/mptcp/protocol.c net/mptcp/protocol.h +1 more+98 -280 replies
5/7mptcp: cleanup accept and pollnet/mptcp/protocol.c net/mptcp/protocol.h net/mptcp/subflow.c+7 -200 replies
6/7mptcp: implement support for user-space disconnectnet/mptcp/protocol.c+13 -40 replies
7/7mptcp: add disconnect selfteststools/testing/selftests/net/mptcp/mptcp_connect.c tools/testing/selftests/net/mptcp/mptcp_connect.sh+160 -270 replies

Reviews trailers per patch

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

PatchMat Martineau
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

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

Read the v2 thread

Cover letter [PATCH v2 mptcp-next 0/7] mptcp: improve accept() and disconnect()

As outlined in the public mtg, mptcp_accept() is currently quite suboptimal, both from performance and code complexity

This series tries to clean it up, enforcing a wider lifetime for the initial subflow, so that we don't need to acquire additional references there.

To reach such goal we need to properly define the disconnect() behavior, which is currently quite incomplete. Additionally allow user-space to really disconnect established connections.

Disconnect() needs in turn an egress FASTCLOSE implementation, added here according to option R (reset - the simpler form).

Finally, the self-tests need as pre-req Florian's patches implementing SIOCOUTQ

v1 -> v2:
- update mptcp_connect argument lists and usage() in patch 7/7

RFC -> v1:
- added patches 1/7, 3/7, 6/7, 7/7
- added a few missing bits in patch 4/7

Paolo Abeni (7):
mptcp: keep snd_una updated for fallback socket
mptcp: never allow the PM to close a listener subflow
mptcp: implement fastclose xmit path
mptcp: full disconnect implementation
mptcp: cleanup accept and poll
mptcp: implement support for user-space disconnect
mptcp: add disconnect selftests

 net/mptcp/options.c                           |  57 +++++--
 net/mptcp/pm.c                                |  10 +-
 net/mptcp/pm_netlink.c                        |   3 +
 net/mptcp/protocol.c                          | 144 +++++++++++------
 net/mptcp/protocol.h                          |  16 +-
 net/mptcp/subflow.c                           |   1 -
 net/mptcp/token.c                             |   1 +
 .../selftests/net/mptcp/mptcp_connect.c       | 148 +++++++++++++++---
 .../selftests/net/mptcp/mptcp_connect.sh      |  39 ++++-
 9 files changed, 324 insertions(+), 95 deletions(-)
Signature · 1 line
2.33.1