diff options
author | Geliang Tang <geliangtang@gmail.com> | 2021-03-26 19:26:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-26 23:05:15 +0100 |
commit | 348d5c1dec60f5f50869a8e40315a66006897732 (patch) | |
tree | 505fc761899070515ece27a89e70a1b8a6b60404 /net/mptcp | |
parent | mptcp: drop unused subflow in mptcp_pm_subflow_established (diff) | |
download | linux-348d5c1dec60f5f50869a8e40315a66006897732.tar.xz linux-348d5c1dec60f5f50869a8e40315a66006897732.zip |
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>
Diffstat (limited to 'net/mptcp')
-rw-r--r-- | net/mptcp/pm_netlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |