mptcp: add do_check_data_fin to replace copied
authorGeliang Tang <geliang.tang@suse.com>
Tue, 6 Sep 2022 20:55:41 +0000 (22:55 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 15 Sep 2022 10:01:02 +0000 (12:01 +0200)
commit0522b424c4c2a1f7d79d62b7723c07d3415d94e5
tree69b13d462c3de25f264fbde27d56a7daea250b3c
parenta1c3bdd9c5dfcba3b4550a28890724f519434e15
mptcp: add do_check_data_fin to replace copied

This patch adds a new bool variable 'do_check_data_fin' to replace the
original int variable 'copied' in __mptcp_push_pending(), check it to
determine whether to call __mptcp_check_send_data_fin().

Suggested-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/mptcp/protocol.c