Skip to content

Exchange MPTCP DATA_FIN/DATA_ACK before TCP FIN

Mat Martineau mptcp netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 1 replyIn review

Patches in v1 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: Use MPTCP-level flag for sending DATA_FINnet/mptcp/options.c net/mptcp/protocol.c net/mptcp/protocol.h+18 -240 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: Add mptcp_close_state() helpernet/mptcp/protocol.c+27 -00 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 -170 replies
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 v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 00/12] Exchange MPTCP DATA_FIN/DATA_ACK before TCP FIN

This series allows the MPTCP-level connection to be closed with the peers exchanging DATA_FIN and DATA_ACK according to the state machine in appendix D of RFC 8684. The process is very similar to the TCP disconnect state machine.

The prior code sends DATA_FIN only when TCP FIN packets are sent, and does not allow for the MPTCP-level connection to be half-closed.

Patch 8 ("mptcp: Use full MPTCP-level disconnect state machine") is the core of the series. Earlier patches in the series have some small fixes and helpers in preparation, and the final four small patches do some cleanup.

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: Use MPTCP-level flag for sending DATA_FIN
mptcp: Track received DATA_FIN sequence number and add related helpers
mptcp: Add mptcp_close_state() helper
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: 0003041e7a0bf24594e5d66fe217bbbefdac44ab

Signature · 1 line
2.28.0