mptcp: add TCP_FASTOPEN_NO_COOKIE support
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Sat, 22 Oct 2022 00:45:04 +0000 (17:45 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 25 Oct 2022 10:32:54 +0000 (12:32 +0200)
commite64d4deb4de006faf7613c6603f5bf1bd1844ab3
tree8ada58dac724d4144b5da1d3f37822b279feec00
parentd3d429047cc66ff49780c93e4fccd9527723d385
mptcp: add TCP_FASTOPEN_NO_COOKIE support

The goal of this socket option is to configure MPTCP + TFO without
cookie per socket.

It was already possible to enable TFO without a cookie per netns by
setting net.ipv4.tcp_fastopen sysctl knob to the right value. Per route
was also supported by setting 'fastopen_no_cookie' option. This patch
adds a per socket support like it is possible to do with TCP thanks to
TCP_FASTOPEN_NO_COOKIE socket option.

The only thing to do here is to relay the request to the first subflow
like it is already done for TCP_FASTOPEN_CONNECT.

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