diff options
author | 2020-10-09 19:00:01 +0200 | |
---|---|---|
committer | 2020-10-10 11:04:53 -0700 | |
commit | 0e4f35d7880157ceccf0a58377d778b02762af82 (patch) | |
tree | 6160e37cd56d5a28940c4e18f00eade5f9489fc0 /net/mptcp/protocol.h | |
parent | mptcp: fix fallback for MP_JOIN subflows (diff) | |
download | linux-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.h | 1 |
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; |