diff mbox series

[mptcp-next] Squash to "mptcp: local addresses fullmesh v4"

Message ID 8e259a61af93e5a2a66318c9515fd6f740d59c77.1627358725.git.geliangtang@xiaomi.com (mailing list archive)
State Superseded, archived
Delegated to: Mat Martineau
Headers show
Series [mptcp-next] Squash to "mptcp: local addresses fullmesh v4" | expand

Commit Message

Geliang Tang July 27, 2021, 4:06 a.m. UTC
From: Geliang Tang <geliangtang@xiaomi.com>

pm.subflows needs to be updated in the non-fullmesh case too.

Signed-off-by: Geliang Tang <geliangtang@xiaomi.com>
---
 net/mptcp/pm_netlink.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c
index 10f09a96952b..a8d7fb99a3dd 100644
--- a/net/mptcp/pm_netlink.c
+++ b/net/mptcp/pm_netlink.c
@@ -581,6 +581,7 @@  static unsigned int fill_local_addresses_vec(struct mptcp_sock *msk,
 		memset(&local, 0, sizeof(local));
 		local.addr.family = remote->family;
 
+		msk->pm.subflows++;
 		entries[i++] = local;
 	}