mptcp: introduce implicit endpoints
authorPaolo Abeni <pabeni@redhat.com>
Mon, 7 Mar 2022 20:44:36 +0000 (12:44 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Mar 2022 06:06:11 +0000 (22:06 -0800)
commitd045b9eb95a9b611c483897a69e7285aefdc66d7
tree755177a3e3a0a2be7f13013fba36eef67a2a6cc8
parent6fa0174a7c8646fce7039b5a176b4f90b0ea513a
mptcp: introduce implicit endpoints

In some edge scenarios, an MPTCP subflows can use a local address
mapped by a "implicit" endpoint created by the in-kernel path manager.

Such endpoints presence can be confusing, as it's creation is hard
to track and will prevent the later endpoint creation from the user-space
using the same address.

Define a new endpoint flag to mark implicit endpoints and allow the
user-space to replace implicit them with user-provided data at endpoint
creation time.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/mptcp.h
net/mptcp/pm_netlink.c
tools/testing/selftests/net/mptcp/mptcp_join.sh