From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m12-13.163.com (m12-13.163.com [220.181.12.13]) by dpdk.org (Postfix) with ESMTP id 6942F952 for ; Fri, 2 Sep 2016 12:23:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=E1abl3SIQe2KyWiamY eZCk0BKW9nNhMlWocLRQU+g8E=; b=hHQxIlfHw2VIOvAGUza8WiC355K6gUTrqe mbGNw2mdmFx7YwkzKBCD1iicZhtn77VL9mFghV+YAHCOo55fazHNibnvyvIXFkeA LvrQw/plOTrKgC0O4H8dHBn435BJCVWz7P/dumqF/RQLAVJlk1Pr6NkV5zVU/hOC 8vdrjd0BA= Received: from VincentGuo-backup.office.mos (unknown [36.110.144.138]) by smtp9 (Coremail) with SMTP id DcCowAA3nx8UU8lXimBMAA--.22663S3; Fri, 02 Sep 2016 18:23:24 +0800 (CST) From: Vincent Guo To: dev@dpdk.org Date: Fri, 2 Sep 2016 18:23:13 +0800 Message-Id: <1472811793-4433-1-git-send-email-guopengfei160@163.com> X-Mailer: git-send-email 2.4.0 In-Reply-To: <1472436734-5538-1-git-send-email-guopengfei160@163.com> References: <1472436734-5538-1-git-send-email-guopengfei160@163.com> X-CM-TRANSID: DcCowAA3nx8UU8lXimBMAA--.22663S3 X-Coremail-Antispam: 1Uf129KBjvdXoWrKr1xJry8Xw45ur1UXw4UCFg_yoWkZrgEq3 yxXF1DJFWfGr4Iyw1Y9rZ3Z3Z3u3Z5Ga1xWws2grW3KFnaqrs8Gw1vk3yrAay3Wr4fWFyr ZrWDCF4SvrW3AjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8773DUUUUU== X-Originating-IP: [36.110.144.138] X-CM-SenderInfo: xjxr1v5qjivxqrwqqiywtou0bp/xtbBoRzYH1QG5OmTnwAAsp Subject: [dpdk-dev] [PATCH v2] kni: 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: Fri, 02 Sep 2016 10:23:28 -0000 Fix pernet calls when HAVE_SIMPLIFIED_PERNET_OPERATIONS is not set. Fixes: e6734d21b4e1 ("kni: fix build with kernel 2.6.32") 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