mptcp: don't send RST for single subflow
authorGeliang Tang <geliang.tang@suse.com>
Fri, 22 Apr 2022 21:55:36 +0000 (14:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Apr 2022 10:51:05 +0000 (11:51 +0100)
commit1761fed2567807f26fbd53032ff622f55978c7a9
tree15eefa51b1f5192590a8bc43ad6ef086eda6a130
parent31693d02b06ed2f0ac668cede16cf3258e86204e
mptcp: don't send RST for single subflow

When a bad checksum is detected and a single subflow is in use, don't
send RST + MP_FAIL, send data_ack + MP_FAIL instead.

So invoke tcp_send_active_reset() only when mptcp_has_another_subflow()
is true.

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>
net/mptcp/subflow.c