aboutsummaryrefslogtreecommitdiffstats
path: root/net/mptcp/protocol.h
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2020-10-09 19:00:01 +0200
committerJakub Kicinski <kuba@kernel.org>2020-10-10 11:04:53 -0700
commit0e4f35d7880157ceccf0a58377d778b02762af82 (patch)
tree6160e37cd56d5a28940c4e18f00eade5f9489fc0 /net/mptcp/protocol.h
parentmptcp: fix fallback for MP_JOIN subflows (diff)
downloadlinux-dev-0e4f35d7880157ceccf0a58377d778b02762af82.tar.xz
linux-dev-0e4f35d7880157ceccf0a58377d778b02762af82.zip
mptcp: subflows garbage collection
The msk can close MP_JOIN subflows if the initial handshake fails. Currently such subflows are kept alive in the conn_list until the msk itself is closed. Beyond the wasted memory, we could end-up sending the DATA_FIN and the DATA_FIN ack on such socket, even after a reset. Fixes: 43b54c6ee382 ("mptcp: Use full MPTCP-level disconnect state machine") 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>
Diffstat (limited to 'net/mptcp/protocol.h')
-rw-r--r--net/mptcp/protocol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h
index a26b33556e9b..972463642690 100644
--- a/net/mptcp/protocol.h
+++ b/net/mptcp/protocol.h
@@ -90,6 +90,7 @@
#define MPTCP_WORK_RTX 2
#define MPTCP_WORK_EOF 3
#define MPTCP_FALLBACK_DONE 4
+#define MPTCP_WORK_CLOSE_SUBFLOW 5
struct mptcp_options_received {
u64 sndr_key;