From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=WyvI4EEk4LzgIbg/1h 9ot98/BOLIKlR2Rh/zzGy4w4A=; b=F4P58MtSOH4/JE3zHhKwIeUvQl7tqe59bB 7CqSb7IyzA21uohAgfHOTcc+W3ZWnCNFRw33eiwMKNmpyyJIHgmQol+6la1pIal3 x9EBkCSKh5zaMg3Fd7FhYk9lePE7WI6S7+VIiePwjqJ8edqO5n9fBe7ZDPsDm3sW YEnVW9luM= Received: from VincentGuo-backup.office.mos (unknown [36.110.144.138]) by smtp8 (Coremail) with SMTP id DMCowADHVjcAmsNXgUuTAg--.24466S3; Mon, 29 Aug 2016 10:12:22 +0800 (CST) From: Vincent Guo To: dev@dpdk.org Date: Mon, 29 Aug 2016 10:12:14 +0800 Message-Id: <1472436734-5538-1-git-send-email-guopengfei160@163.com> X-Mailer: git-send-email 2.4.0 X-CM-TRANSID: DMCowADHVjcAmsNXgUuTAg--.24466S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7JF1fKr1DKF1ruFWfJr48Xrb_yoWkGrgEq3 yxXF1DJFWfGr4Iyw1Y9rZ3Z3Z3u3Z5Ga1xWrs2qrW3KFnaqrs8Gwn7C3yrAay3Wr4fWFyr urWDCF4fXrW3AjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8euWJUUUUU== X-Originating-IP: [36.110.144.138] X-CM-SenderInfo: xjxr1v5qjivxqrwqqiywtou0bp/1tbitAbUH1SIQPOuCgAAsy Subject: [dpdk-dev] [PATCH] Bug fix in module_init and module_exit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 02:12:27 -0000 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