mptcp: simplify subflow_syn_recv_sock()
authorPaolo Abeni <pabeni@redhat.com>
Mon, 27 Mar 2023 10:22:22 +0000 (12:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:34:06 +0000 (10:34 +0200)
commitfa2cbd1d689a1ab728b7e0ceb0934fe41a5123cf
treedc1924fc1ee737f0af18c0b54aa5f3c490c7b127
parent9872e8c632528538f4f0d1ec2a73c413de422b08
mptcp: simplify subflow_syn_recv_sock()

[ Upstream commit a88d0092b24b8cddce57fe0e88e60a9e29e0b515 ]

Postpone the msk cloning to the child process creation
so that we can avoid a bunch of conditionals.

Link: https://github.com/multipath-tcp/mptcp_net-next/issues/61
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 7e8b88ec35ee ("mptcp: consolidate passive msk socket initialization")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mptcp/subflow.c