summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2023-08-11 17:57:15 +0200
committerDavid S. Miller <davem@davemloft.net>2023-08-14 08:06:13 +0200
commitccae357c1c6a76c3b46f12ae18d7679d871c9390 (patch)
tree1645558986b58872cdaeeda2901e11e3ad98d38c /net/ipv4
parentmptcp: avoid unneeded mptcp_token_destroy() calls (diff)
downloadlinux-ccae357c1c6a76c3b46f12ae18d7679d871c9390.tar.xz
linux-ccae357c1c6a76c3b46f12ae18d7679d871c9390.zip
mptcp: avoid additional __inet_stream_connect() call
The mptcp protocol maintains an additional socket just to easily invoke a few stream operations on the first subflow. One of them is __inet_stream_connect(). We are going to remove the first subflow socket soon, so avoid the additional indirection via at connect time, calling directly into the sock-level connect() ops. The sk-level connect never return -EINPROGRESS, cleanup the error path accordingly. Additionally, the ssk status on error is always TCP_CLOSE. Avoid unneeded access to the subflow sk state. No functional change intended. Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions