Skip to content

DATA_FIN support

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 Latest12 patches 3 repliesIn review
  2. v312 patches 3 repliesSuperseded
  3. v212 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v112 patches16 repliesSuperseded

Changes in v4 from the cover letter

* Fix off-by-one error in outgoing DATA_FIN-only mappings, and in the corresponding receive side check. Addresses mptcp_trunk interoperability problem, where mptcp_trunk was not accepting the invalid DATA_FIN sequence number.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12mptcp: Allow DATA_FIN in headers without TCP FINnet/mptcp/options.c+3 -100 replies
2/12mptcp: Return EPIPE if sending is shut down during a sendmsgnet/mptcp/protocol.c+5 -00 replies
3/12mptcp: Remove outdated and incorrect commentnet/mptcp/protocol.c+0 -10 replies
4/12mptcp: Add mptcp_close_state() helpernet/mptcp/protocol.c+27 -00 replies
5/12mptcp: Track received DATA_FIN sequence number and add related helpersnet/mptcp/options.c net/mptcp/protocol.c net/mptcp/protocol.h+115 -100 replies
6/12mptcp: Use MPTCP-level flag for sending DATA_FINnet/mptcp/options.c net/mptcp/protocol.c net/mptcp/protocol.h+18 -240 replies
7/12mptcp: Add helper to process acks of DATA_FINnet/mptcp/protocol.c+46 -80 replies
8/12mptcp: Use full MPTCP-level disconnect state machinenet/mptcp/options.c net/mptcp/protocol.c net/mptcp/subflow.c+92 -171 reply
9/12mptcp: Only use subflow EOF signaling on fallback connectionsnet/mptcp/subflow.c+2 -10 replies
10/12mptcp: Skip unnecessary skb extension allocation for bare acksnet/mptcp/options.c+6 -30 replies
11/12mptcp: Safely read sequence number when lock isn't heldnet/mptcp/protocol.c+1 -10 replies
12/12mptcp: Safely store sequence number when sending datanet/mptcp/protocol.c+1 -10 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 mptcp-next v4 00/12] DATA_FIN support

Here is a series adding full DATA_FIN support at connection shutdown / close. See the patch 8 commit message for information about the disconnection state machine.

Self tests are passing. Have now checked interoperation with the mptcp_trunk branch.

v3 -> v4

* Fix off-by-one error in outgoing DATA_FIN-only mappings, and in the corresponding receive side check. Addresses mptcp_trunk interoperability problem, where mptcp_trunk was not accepting the invalid DATA_FIN sequence number.

v2 -> v3

* Fixed checkpatch issues

v1 -> v2

Fixes from Paolo's review comments, including:

* Squashed patch 8 (main functional changes for state machine) with the previous commit, since the split was causing extra churn and was misleading when trying to review.

* Made more use of the mptcp_pending_data_fin helper. Also refactored that helper to optionally copy the read sequence number for the caller.

* Fixed sequence number check off-by-one problem.

* Removed redundant DATA_FIN sequence number checks in __mptcp_move_skbs_from_subflow().

* Split commit 3 to clarify intentional comment removal.

RFC -> v1

* Split in to a series

* A few enhancements suggested by Paolo

* Lots of fixes, including handling of fallback sockets and connections that are already doing the disconnect handshake before accept() even returns.

Mat Martineau (12):
mptcp: Allow DATA_FIN in headers without TCP FIN
mptcp: Return EPIPE if sending is shut down during a sendmsg
mptcp: Remove outdated and incorrect comment
mptcp: Add mptcp_close_state() helper
mptcp: Track received DATA_FIN sequence number and add related helpers
mptcp: Use MPTCP-level flag for sending DATA_FIN
mptcp: Add helper to process acks of DATA_FIN
mptcp: Use full MPTCP-level disconnect state machine
mptcp: Only use subflow EOF signaling on fallback connections
mptcp: Skip unnecessary skb extension allocation for bare acks
mptcp: Safely read sequence number when lock isn't held
mptcp: Safely store sequence number when sending data

 net/mptcp/options.c  |  57 +++++++--
 net/mptcp/protocol.c | 295 ++++++++++++++++++++++++++++++++++++-------
 net/mptcp/protocol.h |   6 +-
 net/mptcp/subflow.c  |  14 +-
 4 files changed, 306 insertions(+), 66 deletions(-)

base-commit: 936cc81106499d2332697d82592ace2f54595ffe

Signature · 1 line
2.27.0