Skip to content

Commit 62a9b19

Browse files
matttbekuba-moo
authored andcommitted
mptcp: pm: ADD_ADDR rtx: return early if no retrans
No need to iterate over all subflows if there is no retransmission needed. Exit early in this case then. Fixes: 30549ee ("mptcp: make ADD_ADDR retransmission timeout adaptive") 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/20260505-net-mptcp-pm-fixes-7-1-rc3-v1-8-fca8091060a4@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent c6d395e commit 62a9b19

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

net/mptcp/pm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ static unsigned int mptcp_adjust_add_addr_timeout(struct mptcp_sock *msk)
308308
struct mptcp_subflow_context *subflow;
309309
unsigned int max = 0, max_stale = 0;
310310

311+
if (!rto)
312+
return 0;
313+
311314
mptcp_for_each_subflow(msk, subflow) {
312315
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
313316
struct inet_connection_sock *icsk = inet_csk(ssk);

0 commit comments

Comments
 (0)