]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc853055611b12c1fbb946767ec39bbd37520ace
treedd29f30f2015035e5c9da4a7abfec3f7fd1f43dc
parent00e10f7f7d455c91a2ecc50997a6917d69561afc
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