mptcp: create the listening socket for new port
authorGeliang Tang <geliangtang@gmail.com>
Mon, 1 Feb 2021 23:09:12 +0000 (15:09 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Feb 2021 02:37:19 +0000 (18:37 -0800)
commit1729cf186d8a5d70cf7a54e07c4763635079f015
treedd29f30f2015035e5c9da4a7abfec3f7fd1f43dc
parent6208fd822a2c656461d2f2dc29a309d379ab5850
mptcp: create the listening socket for new port

This patch creates a listening socket when an address with a port-number
is added by PM netlink. Then binds the new port to the socket, and
listens for new connections.

When the address is removed or the addresses are flushed by PM netlink,
release the listening socket.

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
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c