[PATCH net-next 0/5] mptcp: Add SOL_MPTCP getsockopt support

Mat Martineau posted 5 patches 1 month ago
Failed in applying to current master (apply log)
include/linux/socket.h                        |   1 +
include/net/mptcp.h                           |   4 +
include/uapi/linux/mptcp.h                    |  35 +
net/mptcp/mptcp_diag.c                        |  26 +-
net/mptcp/sockopt.c                           | 276 +++++++
tools/testing/selftests/net/mptcp/.gitignore  |   1 +
tools/testing/selftests/net/mptcp/Makefile    |   2 +-
.../selftests/net/mptcp/mptcp_sockopt.c       | 683 ++++++++++++++++++
.../selftests/net/mptcp/mptcp_sockopt.sh      |  31 +-
9 files changed, 1031 insertions(+), 28 deletions(-)
create mode 100644 tools/testing/selftests/net/mptcp/mptcp_sockopt.c

[PATCH net-next 0/5] mptcp: Add SOL_MPTCP getsockopt support

Posted by Mat Martineau 1 month ago
Here's the first new MPTCP feature for the v5.16 cycle, and I'll defer
to Florian's helpful description of the series implementing some new
MPTCP socket options:

========

This adds the MPTCP_INFO, MPTCP_TCPINFO and MPTCP_SUBFLOW_ADDRS
mptcp getsockopt optnames.

MPTCP_INFO exposes the mptcp_info struct as an alternative to the
existing netlink diag interface.

MPTCP_TCPINFO exposes the tcp_info struct.
Unlike SOL_TCP/TCP_INFO, this returns one struct for each active
subflow.

MPTCP_SUBFLOW_ADDRS allows userspace to discover the ip addresses/ports
used by the local and remote endpoints, one for each active tcp subflow.

MPTCP_TCPINFO and MPTCP_SUBFLOW_ADDRS share the same meta-header that
needs to be pre-filled by userspace with the size of the data structures
it expects.  This is done to allow extension of the involved structs
later on, without breaking backwards compatibility.

The meta-structure can also be used to discover the required space
to obtain all information, as kernel will fill in the number of
active subflows even if there is not enough room for the requested info
itself.

More information is available in the individual patches.
Last patch adds test cases for the three optnames.

========


Florian Westphal (5):
  mptcp: add new mptcp_fill_diag helper
  mptcp: add MPTCP_INFO getsockopt
  mptcp: add MPTCP_TCPINFO getsockopt support
  mptcp: add MPTCP_SUBFLOW_ADDRS getsockopt support
  selftests: mptcp: add mptcp getsockopt test cases

 include/linux/socket.h                        |   1 +
 include/net/mptcp.h                           |   4 +
 include/uapi/linux/mptcp.h                    |  35 +
 net/mptcp/mptcp_diag.c                        |  26 +-
 net/mptcp/sockopt.c                           | 276 +++++++
 tools/testing/selftests/net/mptcp/.gitignore  |   1 +
 tools/testing/selftests/net/mptcp/Makefile    |   2 +-
 .../selftests/net/mptcp/mptcp_sockopt.c       | 683 ++++++++++++++++++
 .../selftests/net/mptcp/mptcp_sockopt.sh      |  31 +-
 9 files changed, 1031 insertions(+), 28 deletions(-)
 create mode 100644 tools/testing/selftests/net/mptcp/mptcp_sockopt.c


base-commit: af54faab84f754ebd42ecdda871f8d71940ae40b
-- 
2.33.0


Re: [PATCH net-next 0/5] mptcp: Add SOL_MPTCP getsockopt support

Posted by patchwork-bot+netdevbpf@kernel.org 1 month ago
Hello:

This series was applied to netdev/net-next.git (refs/heads/master):

On Fri, 17 Sep 2021 16:33:17 -0700 you wrote:
> Here's the first new MPTCP feature for the v5.16 cycle, and I'll defer
> to Florian's helpful description of the series implementing some new
> MPTCP socket options:
> 
> ========
> 
> This adds the MPTCP_INFO, MPTCP_TCPINFO and MPTCP_SUBFLOW_ADDRS
> mptcp getsockopt optnames.
> 
> [...]

Here is the summary with links:
  - [net-next,1/5] mptcp: add new mptcp_fill_diag helper
    https://git.kernel.org/netdev/net-next/c/61bc6e82f92e
  - [net-next,2/5] mptcp: add MPTCP_INFO getsockopt
    https://git.kernel.org/netdev/net-next/c/55c42fa7fa33
  - [net-next,3/5] mptcp: add MPTCP_TCPINFO getsockopt support
    https://git.kernel.org/netdev/net-next/c/06f15cee3695
  - [net-next,4/5] mptcp: add MPTCP_SUBFLOW_ADDRS getsockopt support
    https://git.kernel.org/netdev/net-next/c/c11c5906bc0a
  - [net-next,5/5] selftests: mptcp: add mptcp getsockopt test cases
    https://git.kernel.org/netdev/net-next/c/ce9979129a0b

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html