diff options
author | 2023-03-27 12:22:21 +0200 | |
---|---|---|
committer | 2023-03-29 09:01:28 +0100 | |
commit | 2bb9a37f0e194ed95c70603b0efc7898a5a0d9b4 (patch) | |
tree | 939f020e7348c2039829a72edf7a01ce9d3d1b47 /net/mptcp/subflow.c | |
parent | Merge branch 'in6addr_any-cleanups' (diff) | |
download | linux-2bb9a37f0e194ed95c70603b0efc7898a5a0d9b4.tar.gz linux-2bb9a37f0e194ed95c70603b0efc7898a5a0d9b4.tar.bz2 linux-2bb9a37f0e194ed95c70603b0efc7898a5a0d9b4.zip |
mptcp: avoid unneeded address copy
In the syn_recv fallback path, the msk is unused. We can skip
setting the socket address.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/subflow.c')
-rw-r--r-- | net/mptcp/subflow.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index dadaf85db720..a11f4c525e01 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -821,8 +821,6 @@ create_child: goto dispose_child; } - if (new_msk) - mptcp_copy_inaddrs(new_msk, child); mptcp_subflow_drop_ctx(child); goto out; } |