From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Guo Subject: [PATCH] Bug fix in module_init and module_exit Date: Mon, 29 Aug 2016 10:12:14 +0800 Message-ID: <1472436734-5538-1-git-send-email-guopengfei160@163.com> To: dev@dpdk.org Return-path: Received: from m12-12.163.com (m12-12.163.com [220.181.12.12]) by dpdk.org (Postfix) with ESMTP id DE00F11C5 for ; Mon, 29 Aug 2016 04:12:25 +0200 (CEST) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix pernet calls when HAVE_SIMPLIFIED_PERNET_OPERATIONS is not set. Signed-off-by: Vincent Guo --- 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