]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mptcp: always graft subflow socket to parent
authorPaolo Abeni <pabeni@redhat.com>
Wed, 20 Jan 2021 14:39:10 +0000 (15:39 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 17 Mar 2021 18:39:50 +0000 (13:39 -0500)
commit133f0169c6d13d5e1bd77c206dd2d5135d9c4d7c
tree2c7e1d3ea153700f2035e5651d9a158a29b8d55b
parent2561094411bb995f85b3bf43c88576b372fd66a4
mptcp: always graft subflow socket to parent

BugLink: https://bugs.launchpad.net/bugs/1919492
[ Upstream commit 866f26f2a9c33bc70eb0f07ffc37fd9424ffe501 ]

Currently, incoming subflows link to the parent socket,
while outgoing ones link to a per subflow socket. The latter
is not really needed, except at the initial connect() time and
for the first subflow.

Always graft the outgoing subflow to the parent socket and
free the unneeded ones early.

This allows some code cleanup, reduces the amount of memory
used and will simplify the next patch

Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c