DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] Bug fix in module_init and module_exit
@ 2016-08-29  2:12 Vincent Guo
  2016-08-29  9:36 ` Ferruh Yigit
  2016-09-02 10:23 ` [dpdk-dev] [PATCH v2] kni: " Vincent Guo
  0 siblings, 2 replies; 6+ messages in thread
From: Vincent Guo @ 2016-08-29  2:12 UTC (permalink / raw)
  To: dev

Fix pernet calls when HAVE_SIMPLIFIED_PERNET_OPERATIONS is not set.

Signed-off-by: Vincent Guo <guopengfei160@163.com>
---
 lib/librte_eal/linuxapp/kni/kni_misc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c
index 67e9b7d..d7850be 100644
--- a/lib/librte_eal/linuxapp/kni/kni_misc.c
+++ b/lib/librte_eal/linuxapp/kni/kni_misc.c
@@ -194,7 +194,7 @@ out:
 #ifdef HAVE_SIMPLIFIED_PERNET_OPERATIONS
 	unregister_pernet_subsys(&kni_net_ops);
 #else
-	register_pernet_gen_subsys(&kni_net_id, &kni_net_ops);
+	unregister_pernet_gen_subsys(kni_net_id, &kni_net_ops);
 #endif
 	return rc;
 }
@@ -206,7 +206,7 @@ kni_exit(void)
 #ifdef HAVE_SIMPLIFIED_PERNET_OPERATIONS
 	unregister_pernet_subsys(&kni_net_ops);
 #else
-	register_pernet_gen_subsys(&kni_net_id, &kni_net_ops);
+	unregister_pernet_gen_subsys(kni_net_id, &kni_net_ops);
 #endif
 	KNI_PRINT("####### DPDK kni module unloaded  #######\n");
 }
-- 
2.4.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-09 14:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-29  2:12 [dpdk-dev] [PATCH] Bug fix in module_init and module_exit Vincent Guo
2016-08-29  9:36 ` Ferruh Yigit
2016-08-29  9:38   ` Ferruh Yigit
2016-09-02 10:23 ` [dpdk-dev] [PATCH v2] kni: " Vincent Guo
2016-09-06  8:02   ` Ferruh Yigit
2016-09-09 14:31     ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).