When adding support for netlink path management commands, the kernel
needs to know whether paths are being controlled by the in-kernel path
manager or a userspace PM.
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
---
net/mptcp/pm.c | 1 +
net/mptcp/protocol.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/net/mptcp/pm.c b/net/mptcp/pm.c
index 6ab386ff3294..79aafcb51756 100644
--- a/net/mptcp/pm.c
+++ b/net/mptcp/pm.c
@@ -369,6 +369,7 @@ void mptcp_pm_data_init(struct mptcp_sock *msk)
WRITE_ONCE(msk->pm.accept_addr, false);
WRITE_ONCE(msk->pm.accept_subflow, false);
WRITE_ONCE(msk->pm.remote_deny_join_id0, false);
+ WRITE_ONCE(msk->pm.userspace, false);
msk->pm.status = 0;
spin_lock_init(&msk->pm.lock);
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h
index 284fdcec067e..b06c2307296d 100644
--- a/net/mptcp/protocol.h
+++ b/net/mptcp/protocol.h
@@ -197,6 +197,7 @@ struct mptcp_pm_data {
bool accept_addr;
bool accept_subflow;
bool remote_deny_join_id0;
+ bool userspace;
u8 add_addr_signaled;
u8 add_addr_accepted;
u8 local_addr_used;
--
2.33.0