]> 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)
commite16701f6ad2926e703364a7a996531351388146a
treedd29f30f2015035e5c9da4a7abfec3f7fd1f43dc
parent33ad051d62b4277adee35a9213df788f56ff7ee9
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