mptcp: change 'first' as a parameter
authorGeliang Tang <geliang.tang@suse.com>
Thu, 10 Nov 2022 23:23:19 +0000 (15:23 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 12 Nov 2022 05:19:46 +0000 (21:19 -0800)
commit73a0052a61f98354f39f461e03f1a7e513b84578
tree3e913422a5027219fb3ee3c348a391c23e141007
parent00df24f19179c8e8c81fffa95c91d5c2eab8964e
mptcp: change 'first' as a parameter

The function mptcp_subflow_process_delegated() uses the input ssk first,
while __mptcp_check_push() invokes the packet scheduler first.

So this patch adds a new parameter named 'first' for the function
__mptcp_subflow_push_pending() to deal with these two cases separately.

With this change, the code that invokes the packet scheduler in the
function __mptcp_check_push() can be removed, and replaced by invoking
__mptcp_subflow_push_pending() directly.

Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c