Skip to content

mptcp: add reset and fastclose option support

Florian Westphal mptcp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tcp: make two mptcp helpers available to tcp stackinclude/net/mptcp.h include/net/tcp.h net/mptcp/protocol.h+15 -112 replies
2/5tcp: parse mptcp options contained in reset packetsinclude/net/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_minisocks.c+10 -70 replies
3/5mptcp: add mptcp reset option supportinclude/net/mptcp.h include/net/tcp.h net/ipv4/tcp_ipv4.c +5 more+134 -144 replies
4/5mptcp: parse and act on incoming FASTCLOSE optionnet/mptcp/options.c net/mptcp/protocol.c net/mptcp/protocol.h+52 -00 replies
5/5mptcp: send fastclose if userspace closes socket with unread datanet/mptcp/options.c net/mptcp/protocol.c net/mptcp/protocol.h+67 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [MPTCP] [PATCH MPTCP 0/5] mptcp: add reset and fastclose option support

This series adds reset and fast close options.
Both need common infrastructure:
1. need to parse mptcp option in tcp reset packets, and making them available to the stack
2. ability to add mptcp option to tcp reset packets

First two patches move code around and add mptcp-callsite for option deciding from rst packets.

Patch 3 adds reset support (both decoding and adding them). Patch 4 adds the fastclose receive processing. Patch 5 sends a fastclose packet when userspace calls close() while there is unread data in the mptcp rx queue.

Patch 2) is not strictly need ATM, I could rework the series to remove it and only handle fastclose for the time being. Last patch could be removed as well so we only handle the rx case (there is nothing in RFC that says we must send fastclose).

Comments welcome.