Skip to content

RFC initial SOL_SOCKET support

Florian Westphal mptcp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9mptcp: add skeleton to sync msk socket options to subflowsnet/mptcp/protocol.c net/mptcp/protocol.h net/mptcp/sockopt.c +1 more+68 -33 replies
2/9mptcp: setsockopt: handle SO_KEEPALIVE and SO_PRIORITYnet/mptcp/sockopt.c+95 -02 replies
3/9mptcp: setsockopt: handle receive/send buffer and device bindnet/mptcp/sockopt.c+51 -02 replies
4/9mptcp: setsockopt: support SO_LINGERnet/mptcp/sockopt.c+48 -00 replies
5/9mptcp: setsockopt: add SO_MARK supportnet/mptcp/sockopt.c+40 -00 replies
6/9mptcp: setsockopt: add SO_INCOMING_CPUnet/mptcp/sockopt.c+22 -00 replies
7/9mptcp: setsockopt: SO_DEBUG and no-op optionsnet/mptcp/sockopt.c+41 -00 replies
8/9mptcp: sockopt: add TCP_CONGESTIONnet/mptcp/sockopt.c+83 -02 replies
9/9mptcp: sockopt: handle TCP_INFOnet/mptcp/sockopt.c+24 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [MPTCP] [RFC PATCH mptcp-next 0/9] initial SOL_SOCKET support

This patch set improves support for several SOL_SOCKET tuneables.

First patch adds skeleton synchronization functions to copy mptcp socket settings to a subflow socket.

For the incoming connection case a work queue based synchronization point is added.

A sequence number tells which subflows are out-of-sync and need updating.

setsockopt SOL_SOCKET gets extended to handle several tuneables.

Some of these get copied to all subflows:
- keepalive
- packet mark (influences routing decision)
- SO_LINGER

Others are only set on the initial socket, e.g.
BINDTODEVICE.

Some of these are debateable, for instance SO_INCOMING_CPU.

Last two patches add support for two TCP sockopts, TCP_CONGESTION and TCP_INFO.

The former is only set for the initial subflow, since that is what userspace program knows about (bind/connect address).

It seems better to allow mptcpd/iproute2 to augment subflows with TCPcc info instead.

TCP_INFO is another item open for debate.
The patch here will take the TCP info from the subflow that was last used to send data.

This may not be what is expected, however.
Since the struct format is fixed, there are not many alternatives:
1. - always fail with -EOPNOTSUPP
2. - try to artificially synthesize TCP_INFO record based on mptcp level sequence numbers, etc.
3. - always follow the initial subflow only.

Comments welcome.

Furthermore, support for various SO_TIMESTAMP* settings will need cmsg support in mptcp to be useful. Let me know if anyone is already looking at that.

Florian Westphal (9):
mptcp: add skeleton to sync msk socket options to subflows
mptcp: setsockopt: handle SO_KEEPALIVE and SO_PRIORITY
mptcp: setsockopt: handle receive/send buffer and device bind
mptcp: setsockopt: support SO_LINGER
mptcp: setsockopt: add SO_MARK support
mptcp: setsockopt: add SO_INCOMING_CPU
mptcp: setsockopt: SO_DEBUG and no-op options
mptcp: sockopt: add TCP_CONGESTION
mptcp: sockopt: handle TCP_INFO

 net/mptcp/protocol.c |  31 +++-
 net/mptcp/protocol.h |  12 ++
 net/mptcp/sockopt.c  | 431 +++++++++++++++++++++++++++++++++++++++++++
 net/mptcp/subflow.c  |   1 +
 4 files changed, 472 insertions(+), 3 deletions(-)
Signature · 1 line
2.26.2