mptcp: consolidate sockopt synchronization
authorPaolo Abeni <pabeni@redhat.com>
Mon, 23 Oct 2023 20:44:40 +0000 (13:44 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Oct 2023 19:23:34 +0000 (12:23 -0700)
commita1ab24e5fc4a3048a1b3a24ab0ddc7b73358baa9
treecadefb27858c0b1d061a57f202fbebb05e5e3895
parent0ffe8e74904027aa48d1f8bd52675c6f0a4c88d1
mptcp: consolidate sockopt synchronization

Move the socket option synchronization for active subflows
at subflow creation time. This allows removing the now unused
unlocked variant of such helper.

While at that, clean-up a bit the mptcp_subflow_create_socket()
errors path.

Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20231023-send-net-next-20231023-2-v1-7-9dc60939d371@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c
net/mptcp/sockopt.c
net/mptcp/subflow.c