diff options
author | Geliang Tang <geliang.tang@suse.com> | 2022-04-27 00:57:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-27 12:45:54 +0300 |
commit | 9c81be0dbc89ccb76ce34c3a88425bf3a0d57ebb (patch) | |
tree | b621f259c152b69feda0ae214ed3b0ea3f401b2b /net/mptcp/subflow.c | |
parent | 4293248c6704b854bf816aa1967e433402bee11c (diff) | |
download | linux-9c81be0dbc89ccb76ce34c3a88425bf3a0d57ebb.tar.xz |
mptcp: add MP_FAIL response support
This patch adds a new struct member mp_fail_response_expect in struct
mptcp_subflow_context to support MP_FAIL response. In the single subflow
with checksum error and contiguous data special case, a MP_FAIL is sent
in response to another MP_FAIL.
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/subflow.c')
-rw-r--r-- | net/mptcp/subflow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index 30ffb00661bb..ca2352ad20d4 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -1217,6 +1217,8 @@ fallback: tcp_send_active_reset(ssk, GFP_ATOMIC); while ((skb = skb_peek(&ssk->sk_receive_queue))) sk_eat_skb(ssk, skb); + } else { + WRITE_ONCE(subflow->mp_fail_response_expect, true); } WRITE_ONCE(subflow->data_avail, MPTCP_SUBFLOW_NODATA); return true; |