OSDN Git Service

mptcp: sockopt: make 'tcp_fastopen_connect' generic
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Sat, 22 Oct 2022 00:45:03 +0000 (17:45 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 25 Oct 2022 10:32:54 +0000 (12:32 +0200)
commitd3d429047cc66ff49780c93e4fccd9527723d385
treef3d2a2f7b92d4b1bdb648e2b0a4806f04c6bff0a
parent818a26048a292e290a6b76e3fe2174344824b3b7
mptcp: sockopt: make 'tcp_fastopen_connect' generic

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>
net/mptcp/sockopt.c