]> www.infradead.org Git - users/willy/xarray.git/commitdiff
mptcp: move to next addr when timeout
authorGeliang Tang <geliangtang@gmail.com>
Fri, 26 Mar 2021 18:26:34 +0000 (11:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 22:05:15 +0000 (15:05 -0700)
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 <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm_netlink.c

index 4b4b87803f3316c8a19b606da633c83f0d1c3f55..c0c942c101cbd2759ccb7e9f505717d53b438f48 100644 (file)
@@ -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);
 }