From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 3100158F1 for ; Mon, 16 Nov 2015 12:50:21 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 16 Nov 2015 03:50:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,302,1444719600"; d="scan'208";a="851764869" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by orsmga002.jf.intel.com with ESMTP; 16 Nov 2015 03:50:19 -0800 Received: from irsmsx155.ger.corp.intel.com (163.33.192.3) by IRSMSX101.ger.corp.intel.com (163.33.3.153) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 16 Nov 2015 11:50:18 +0000 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.23]) by irsmsx155.ger.corp.intel.com ([169.254.14.150]) with mapi id 14.03.0248.002; Mon, 16 Nov 2015 11:50:18 +0000 From: "De Lara Guarch, Pablo" To: "Zhang, Helin" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] kni: fix compile issue on different kernel versions Thread-Index: AQHRGresTAKsw8u/gUGCl1xlQZBkVZ6elF3w Date: Mon, 16 Nov 2015 11:50:17 +0000 Message-ID: References: <1447050372-30419-1-git-send-email-helin.zhang@intel.com> In-Reply-To: <1447050372-30419-1-git-send-email-helin.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] kni: fix compile issue on different kernel versions 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, 16 Nov 2015 11:50:22 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Helin Zhang > Sent: Monday, November 09, 2015 6:26 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] kni: fix compile issue on different kernel > versions >=20 > It fixes the compile issue on kernel version 2.6.32 or old ones. >=20 > Error logs: > lib/librte_eal/linuxapp/kni/kni_misc.c:121: error: unknown field id > specified in initializer > lib/librte_eal/linuxapp/kni/kni_misc.c:121: error: excess elements in str= uct > initializer > lib/librte_eal/linuxapp/kni/kni_misc.c:121: error: (near initialization f= or > kni_net_ops) > lib/librte_eal/linuxapp/kni/kni_misc.c:122: error: unknown field size > specified in initializer > lib/librte_eal/linuxapp/kni/kni_misc.c:122: error: excess elements in str= uct > initializer > lib/librte_eal/linuxapp/kni/kni_misc.c:122: error: (near initialization f= or > kni_net_ops) >=20 > Fixes: 72a7a2b2469e ("kni: allow per-net instances") >=20 > Signed-off-by: Helin Zhang Acked-by: Pablo de Lara