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 <geliangtang@gmail.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
62535200be
commit
348d5c1dec
|
@ -337,6 +337,9 @@ static void mptcp_pm_add_timer(struct timer_list *timer)
|
||||||
|
|
||||||
spin_unlock_bh(&msk->pm.lock);
|
spin_unlock_bh(&msk->pm.lock);
|
||||||
|
|
||||||
|
if (entry->retrans_times == ADD_ADDR_RETRANS_MAX)
|
||||||
|
mptcp_pm_subflow_established(msk);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
__sock_put(sk);
|
__sock_put(sk);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue