Skip to content

Commit 5369997

Browse files
matttbegregkh
authored andcommitted
mptcp: pm: ADD_ADDR rtx: return early if no retrans
commit 62a9b19 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7c9e40c commit 5369997

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
@@ -311,6 +311,9 @@ static unsigned int mptcp_adjust_add_addr_timeout(struct mptcp_sock *msk)
311311
struct mptcp_subflow_context *subflow;
312312
unsigned int max = 0, max_stale = 0;
313313

314+
if (!rto)
315+
return 0;
316+
314317
mptcp_for_each_subflow(msk, subflow) {
315318
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
316319
struct inet_connection_sock *icsk = inet_csk(ssk);

0 commit comments

Comments
 (0)