diff mbox series

[v2,mptcp-next,2/4] mptcp: move to next addr when timeout

Message ID 437320b247f2edc61b956f7251d903156e87c854.1614053997.git.geliangtang@gmail.com
State Superseded, archived
Delegated to: Mat Martineau
Headers show
Series move to next addr when timeout | expand

Commit Message

Geliang Tang Feb. 23, 2021, 4:29 a.m. UTC
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>
 net/mptcp/pm_netlink.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series


diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c
index 4412a339e305..492cb0338e8d 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)
+	if (entry->retrans_times == ADD_ADDR_RETRANS_MAX)
+		mptcp_pm_subflow_established(msk);