From: Geliang Tang Date: Fri, 26 Mar 2021 18:26:34 +0000 (-0700) Subject: mptcp: move to next addr when timeout X-Git-Tag: xarray-5.18~1995^2~373^2~8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=348d5c1dec60f5f50869a8e40315a66006897732;p=users%2Fwilly%2Fxarray.git mptcp: move to next addr when timeout This patch called mptcp_pm_subflow_established to move to the next address when an ADD_ADDR has been retransmitted the maximum number of times. Signed-off-by: Geliang Tang Signed-off-by: Mat Martineau Signed-off-by: David S. Miller --- diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c index 4b4b87803f33..c0c942c101cb 100644 --- a/net/mptcp/pm_netlink.c +++ b/net/mptcp/pm_netlink.c @@ -337,6 +337,9 @@ static void mptcp_pm_add_timer(struct timer_list *timer) spin_unlock_bh(&msk->pm.lock); + if (entry->retrans_times == ADD_ADDR_RETRANS_MAX) + mptcp_pm_subflow_established(msk); + out: __sock_put(sk); }