summaryrefslogtreecommitdiff
path: root/net/mptcp/subflow.c
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2023-03-27 13:22:21 +0300
committerDavid S. Miller <davem@davemloft.net>2023-03-29 11:01:28 +0300
commit2bb9a37f0e194ed95c70603b0efc7898a5a0d9b4 (patch)
tree939f020e7348c2039829a72edf7a01ce9d3d1b47 /net/mptcp/subflow.c
parent9380d89104ead5d03a0977ce0b9226a6e94a8911 (diff)
downloadlinux-2bb9a37f0e194ed95c70603b0efc7898a5a0d9b4.tar.xz
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.c2
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;
}