mptcp: create subflow or signal addr for newly added address
authorGeliang Tang <geliangtang@gmail.com>
Mon, 1 Feb 2021 23:09:08 +0000 (15:09 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Feb 2021 02:37:18 +0000 (18:37 -0800)
commit875b76718f68bac8cec4ce669babd709852ca376
treef517eab6610bcd59d8a17b4642e2c231fe4533f4
parenta914e586689f2b322e7b923eb9ea8894fc80d5ec
mptcp: create subflow or signal addr for newly added address

Currently, when a new MPTCP endpoint is added, the existing MPTCP
sockets are not affected.

This patch implements a new function mptcp_nl_add_subflow_or_signal_addr,
invoked when an address is added from PM netlink. This function traverses
the MPTCP sockets list and invokes mptcp_pm_create_subflow_or_signal_addr
to try to create a subflow or signal an address for the newly added
address, if local constraint allows that.

Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/19
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_netlink.c