linux/net/mptcp
Matthieu Baerts (NGI0) 218b482f00 mptcp: sched: check both backup in retrans
commit 2a1f596ebb upstream.

The 'mptcp_subflow_context' structure has two items related to the
backup flags:

 - 'backup': the subflow has been marked as backup by the other peer

 - 'request_bkup': the backup flag has been set by the host

Looking only at the 'backup' flag can make sense in some cases, but it
is not the behaviour of the default packet scheduler when selecting
paths.

As explained in the commit b6a66e521a ("mptcp: sched: check both
directions for backup"), the packet scheduler should look at both flags,
because that was the behaviour from the beginning: the 'backup' flag was
set by accident instead of the 'request_bkup' one. Now that the latter
has been fixed, get_retrans() needs to be adapted as well.

Fixes: b6a66e521a ("mptcp: sched: check both directions for backup")
Cc: stable@vger.kernel.org
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20240826-net-mptcp-close-extra-sf-fin-v1-3-905199fe1172@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-09-04 13:23:38 +02:00
..
crypto.c kunit: mptcp: adhere to KUNIT formatting standard 2021-04-16 17:10:40 -07:00
crypto_test.c mptcp: move crypto test to KUNIT 2020-06-26 16:21:39 -07:00
ctrl.c mptcp: faster active backup recovery 2021-08-14 11:37:25 +01:00
diag.c mptcp: correct MPTCP_SUBFLOW_ATTR_SSN_OFFSET reserved size 2024-09-04 13:23:19 +02:00
Kconfig kunit: mptcp: adhere to KUNIT formatting standard 2021-04-16 17:10:40 -07:00
Makefile kunit: mptcp: adhere to KUNIT formatting standard 2021-04-16 17:10:40 -07:00
mib.c mptcp: mib: count MPJ with backup flag 2024-08-19 05:45:48 +02:00
mib.h mptcp: mib: count MPJ with backup flag 2024-08-19 05:45:48 +02:00
mptcp_diag.c net: inet: Retire port only listening_hash 2023-11-28 16:56:22 +00:00
options.c mptcp: fully established after ADD_ADDR echo on MPJ 2024-08-19 05:45:51 +02:00
pm.c mptcp: pm: fix backup support in signal endpoints 2024-08-19 05:45:48 +02:00
pm_netlink.c mptcp: pm: fix backup support in signal endpoints 2024-08-19 05:45:48 +02:00
protocol.c mptcp: sched: check both backup in retrans 2024-09-04 13:23:38 +02:00
protocol.h mptcp: pm: fix backup support in signal endpoints 2024-08-19 05:45:48 +02:00
sockopt.c mptcp: fix full TCP keep-alive support 2024-06-16 13:39:54 +02:00
subflow.c mptcp: pm: fix backup support in signal endpoints 2024-08-19 05:45:48 +02:00
syncookies.c mptcp: don't return sockets in foreign netns 2021-09-24 10:51:36 +01:00
token.c mptcp: don't return sockets in foreign netns 2021-09-24 10:51:36 +01:00
token_test.c mptcp: don't return sockets in foreign netns 2021-09-24 10:51:36 +01:00