mptcp.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Mat Martineau <mathew.j.martineau@linux.intel.com>
To: netdev@vger.kernel.org
Cc: Mat Martineau <mathew.j.martineau@linux.intel.com>,
	davem@davemloft.net, kuba@kernel.org,
	matthieu.baerts@tessares.net, mptcp@lists.linux.dev
Subject: [PATCH net-next 00/13] mptcp: Improve socket option handling
Date: Thu, 15 Apr 2021 16:44:49 -0700	[thread overview]
Message-ID: <20210415234502.224225-1-mathew.j.martineau@linux.intel.com> (raw)

MPTCP sockets have previously had limited socket option support. The
architecture of MPTCP sockets (one userspace-facing MPTCP socket that
manages one or more in-kernel TCP subflow sockets) adds complexity for
passing options through to lower levels. This patch set adds MPTCP
support for socket options commonly used with TCP.

Patch 1 reverts an interim socket option fix (a socket option blocklist)
that was merged in the net tree for v5.12.

Patch 2 moves the socket option code to a separate file, with no
functional changes.

Patch 3 adds an allowlist for socket options that are known to function
with MPTCP. Later patches in this set add more allowed options.

Patches 4 and 5 add infrastructure for syncing MPTCP-level options with
the TCP subflows.

Patches 6-12 add support for specific socket options.

Patch 13 adds a socket option self test.


Florian Westphal (10):
  mptcp: add skeleton to sync msk socket options to subflows
  mptcp: tag sequence_seq with socket state
  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 and TCP_INFO
  selftests: mptcp: add packet mark test case

Matthieu Baerts (1):
  mptcp: revert "mptcp: forbit mcast-related sockopt on MPTCP sockets"

Paolo Abeni (2):
  mptcp: move sockopt function into a new file
  mptcp: only admit explicitly supported sockopt

 net/mptcp/Makefile                            |   2 +-
 net/mptcp/protocol.c                          | 219 ++---
 net/mptcp/protocol.h                          |  16 +
 net/mptcp/sockopt.c                           | 756 ++++++++++++++++++
 net/mptcp/subflow.c                           |   5 +
 tools/testing/selftests/net/mptcp/Makefile    |   2 +-
 .../selftests/net/mptcp/mptcp_connect.c       |  23 +-
 .../selftests/net/mptcp/mptcp_sockopt.sh      | 276 +++++++
 8 files changed, 1122 insertions(+), 177 deletions(-)
 create mode 100644 net/mptcp/sockopt.c
 create mode 100755 tools/testing/selftests/net/mptcp/mptcp_sockopt.sh


base-commit: 3a1aa533f7f676aad68f8dbbbba10b9502903770
-- 
2.31.1


             reply	other threads:[~2021-04-15 23:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-15 23:44 Mat Martineau [this message]
2021-04-15 23:44 ` [PATCH net-next 01/13] mptcp: revert "mptcp: forbit mcast-related sockopt on MPTCP sockets" Mat Martineau
2021-04-15 23:44 ` [PATCH net-next 02/13] mptcp: move sockopt function into a new file Mat Martineau
2021-04-15 23:44 ` [PATCH net-next 03/13] mptcp: only admit explicitly supported sockopt Mat Martineau
2021-04-15 23:44 ` [PATCH net-next 04/13] mptcp: add skeleton to sync msk socket options to subflows Mat Martineau
2021-04-15 23:44 ` [PATCH net-next 05/13] mptcp: tag sequence_seq with socket state Mat Martineau
2021-04-15 23:44 ` [PATCH net-next 06/13] mptcp: setsockopt: handle SO_KEEPALIVE and SO_PRIORITY Mat Martineau
2021-04-15 23:44 ` [PATCH net-next 07/13] mptcp: setsockopt: handle receive/send buffer and device bind Mat Martineau
2021-04-15 23:44 ` [PATCH net-next 08/13] mptcp: setsockopt: support SO_LINGER Mat Martineau
2021-04-15 23:44 ` [PATCH net-next 09/13] mptcp: setsockopt: add SO_MARK support Mat Martineau
2021-04-15 23:44 ` [PATCH net-next 10/13] mptcp: setsockopt: add SO_INCOMING_CPU Mat Martineau
2021-04-15 23:45 ` [PATCH net-next 11/13] mptcp: setsockopt: SO_DEBUG and no-op options Mat Martineau
2021-04-15 23:45 ` [PATCH net-next 12/13] mptcp: sockopt: add TCP_CONGESTION and TCP_INFO Mat Martineau
2021-04-15 23:45 ` [PATCH net-next 13/13] selftests: mptcp: add packet mark test case Mat Martineau
2021-04-16 22:30 ` [PATCH net-next 00/13] mptcp: Improve socket option handling patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210415234502.224225-1-mathew.j.martineau@linux.intel.com \
    --to=mathew.j.martineau@linux.intel.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=matthieu.baerts@tessares.net \
    --cc=mptcp@lists.linux.dev \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).