mptcp: sockopt: make 'tcp_fastopen_connect' generic
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Sat, 22 Oct 2022 00:45:03 +0000 (17:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:59:40 +0000 (12:59 +0100)
commit94ed108bf18cb045a40a42661c093a579770c831
tree49d640ea0b0511a59775b33675f18d042a620626
parent129c15b606278f9254a16013f7e5a94a128d9bcd
mptcp: sockopt: make 'tcp_fastopen_connect' generic

[ Upstream commit d3d429047cc66ff49780c93e4fccd9527723d385 ]

There are other socket options that need to act only on the first
subflow, e.g. all TCP_FASTOPEN* socket options.

This is similar to the getsockopt version.

In the next commit, this new mptcp_setsockopt_first_sf_only() helper is
used by other another option.

Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Stable-dep-of: 21e43569685d ("mptcp: fix locking for setsockopt corner-case")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mptcp/sockopt.c