]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: create msk early
authorPaolo Abeni <pabeni@redhat.com>
Fri, 13 Mar 2020 15:52:41 +0000 (16:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 07:19:03 +0000 (00:19 -0700)
commit3839e3e2f8d7aad580f31b609ae69457d0d31838
tree88a92c876cccfbad9904f97e4afd5e2e607fb25b
parentfe2fff46cc5448b9e6b43bbc74d1433cd22b0dbe
mptcp: create msk early

This change moves the mptcp socket allocation from mptcp_accept() to
subflow_syn_recv_sock(), so that subflow->conn is now always set
for the non fallback scenario.

It allows cleaning up a bit mptcp_accept() reducing the additional
locking and will allow fourther cleanup in the next patch.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c
net/mptcp/token.c