mptcp: use get_retrans wrapper
authorGeliang Tang <geliang.tang@suse.com>
Mon, 21 Aug 2023 22:25:20 +0000 (15:25 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Aug 2023 00:31:19 +0000 (17:31 -0700)
commitee2708aedad00544d38dba6df88efeb4a330bd66
tree2663b5eed4c92051690da84dba5680e60141b652
parent0fa1b3783a17d75a4aa1651a18ede041ffca5750
mptcp: use get_retrans wrapper

This patch adds the multiple subflows support for __mptcp_retrans(). Use
get_retrans() wrapper instead of mptcp_subflow_get_retrans() in it.

Check the subflow scheduled flags to test which subflow or subflows are
picked by the scheduler, use them to send data.

Move msk_owned_by_me() and fallback checks into get_retrans() wrapper
from mptcp_subflow_get_retrans().

Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20230821-upstream-net-next-20230818-v1-9-0c860fb256a8@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c
net/mptcp/sched.c