OSDN Git Service

mptcp: netlink: allow userspace-driven subflow establishment
authorFlorian Westphal <fw@strlen.de>
Wed, 4 May 2022 02:38:56 +0000 (19:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2022 09:49:32 +0000 (10:49 +0100)
commit702c2f646d42cfd9e31133d68a8283fea48fd810
tree3ca7845fa7096107ee635e30b0e898c06f57013d
parentecd2a77d672f0ea954b00bb5700f25bb1f9a32be
mptcp: netlink: allow userspace-driven subflow establishment

This allows userspace to tell kernel to add a new subflow to an existing
mptcp connection.

Userspace provides the token to identify the mptcp-level connection
that needs a change in active subflows and the local and remote
addresses of the new or the to-be-removed subflow.

MPTCP_PM_CMD_SUBFLOW_CREATE requires the following parameters:
{ token, { loc_id, family, loc_addr4 | loc_addr6 }, { family, rem_addr4 |
rem_addr6, rem_port }

MPTCP_PM_CMD_SUBFLOW_DESTROY requires the following parameters:
{ token, { family, loc_addr4 | loc_addr6, loc_port }, { family, rem_addr4 |
rem_addr6, rem_port }

Acked-by: Paolo Abeni <pabeni@redhat.com>
Co-developed-by: Kishen Maloor <kishen.maloor@intel.com>
Signed-off-by: Kishen Maloor <kishen.maloor@intel.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/mptcp.h
net/mptcp/pm_netlink.c
net/mptcp/pm_userspace.c
net/mptcp/protocol.h