aboutsummaryrefslogtreecommitdiffstats
path: root/net/mptcp/protocol.h
diff options
context:
space:
mode:
authorGeliang Tang <geliang.tang@suse.com>2022-04-26 14:57:15 -0700
committerDavid S. Miller <davem@davemloft.net>2022-04-27 10:45:54 +0100
commit49fa1919d6bcdcf3cf3d080c1943f537f6ed5e70 (patch)
tree9763e45a6fa1bd778b2bdff78d32de45a5402345 /net/mptcp/protocol.h
parentmptcp: add MP_FAIL response support (diff)
downloadlinux-dev-49fa1919d6bcdcf3cf3d080c1943f537f6ed5e70.tar.xz
linux-dev-49fa1919d6bcdcf3cf3d080c1943f537f6ed5e70.zip
mptcp: reset subflow when MP_FAIL doesn't respond
This patch adds a new msk->flags bit MPTCP_FAIL_NO_RESPONSE, then reuses sk_timer to trigger a check if we have not received a response from the peer after sending MP_FAIL. If the peer doesn't respond properly, reset the subflow. Signed-off-by: Geliang Tang <geliang.tang@suse.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
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 cc66c81a8fab..3a8740fef918 100644
--- a/net/mptcp/protocol.h
+++ b/net/mptcp/protocol.h
@@ -116,6 +116,7 @@
#define MPTCP_WORK_EOF 3
#define MPTCP_FALLBACK_DONE 4
#define MPTCP_WORK_CLOSE_SUBFLOW 5
+#define MPTCP_FAIL_NO_RESPONSE 6
/* MPTCP socket release cb flags */
#define MPTCP_PUSH_PENDING 1