All of lore.kernel.org
 help / color / mirror / Atom feed
* [MPTCP] [PATCH] mptcp:pm: limit changes for basic in pm.c
@ 2019-10-15 14:06 Matthieu Baerts
  0 siblings, 0 replies; only message in thread
From: Matthieu Baerts @ 2019-10-15 14:06 UTC (permalink / raw)
  To: mptcp

[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

Seems better to use mptcp_pm_init() and remove specifc changes for
'basic' PM in protocol.c.

Signed-off-by: Matthieu Baerts <matthieu.baerts(a)tessares.net>
---

Notes:
    to be squashed in "mptcp: Implement basic path manager"

 net/mptcp/pm.c       | 1 +
 net/mptcp/protocol.c | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mptcp/pm.c b/net/mptcp/pm.c
index 9c1e3e631ade..d2b56fb8b47f 100644
--- a/net/mptcp/pm.c
+++ b/net/mptcp/pm.c
@@ -198,4 +198,5 @@ int mptcp_pm_get_local_id(struct request_sock *req, struct sock *sk,
 
 void mptcp_pm_init(void)
 {
+	mptcp_basic_init();
 }
diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index 9f89095ac438..df5455c3719a 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -1447,7 +1447,6 @@ void mptcp_proto_init(void)
 
 	mptcp_subflow_init();
 	mptcp_pm_init();
-	mptcp_basic_init();
 
 	if (proto_register(&mptcp_prot, 1) != 0)
 		panic("Failed to register MPTCP proto.\n");
-- 
2.20.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-15 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-15 14:06 [MPTCP] [PATCH] mptcp:pm: limit changes for basic in pm.c Matthieu Baerts

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.