diff options
author | Paolo Abeni <pabeni@redhat.com> | 2023-08-11 17:57:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-14 08:06:13 +0200 |
commit | ccae357c1c6a76c3b46f12ae18d7679d871c9390 (patch) | |
tree | 1645558986b58872cdaeeda2901e11e3ad98d38c /net/ipv4 | |
parent | mptcp: avoid unneeded mptcp_token_destroy() calls (diff) | |
download | linux-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