From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 5D2BA593E for ; Tue, 19 Aug 2014 04:52:10 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 18 Aug 2014 19:55:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,891,1400050800"; d="scan'208";a="589976733" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga002.jf.intel.com with ESMTP; 18 Aug 2014 19:55:34 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 18 Aug 2014 19:55:34 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 18 Aug 2014 19:55:33 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.17]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.198]) with mapi id 14.03.0195.001; Tue, 19 Aug 2014 10:55:32 +0800 From: "Zhang, Helin" To: Aaro Koskinen , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] kni: fix build with Linux 3.17 Thread-Index: AQHPuuKiSOKaGCCC7EKmqkqexxXBrJvXO45w Date: Tue, 19 Aug 2014 02:55:31 +0000 Message-ID: References: <1408365899-29179-1-git-send-email-aaro.koskinen@nsn.com> In-Reply-To: <1408365899-29179-1-git-send-email-aaro.koskinen@nsn.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] kni: fix build with Linux 3.17 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: Tue, 19 Aug 2014 02:52:10 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Aaro Koskinen > Sent: Monday, August 18, 2014 8:45 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] kni: fix build with Linux 3.17 >=20 > In the series of ever-lasting ugly #ifdefs trying make out-of-tree driver= s to > support latest mainline kernel... >=20 > Signed-off-by: Aaro Koskinen > --- > lib/librte_eal/linuxapp/kni/kni_misc.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c > b/lib/librte_eal/linuxapp/kni/kni_misc.c > index 1c085d9..ba77776 100644 > --- a/lib/librte_eal/linuxapp/kni/kni_misc.c > +++ b/lib/librte_eal/linuxapp/kni/kni_misc.c > @@ -345,6 +345,9 @@ kni_ioctl_create(unsigned int ioctl_num, unsigned lon= g > ioctl_param) > up_read(&kni_list_lock); >=20 > net_dev =3D alloc_netdev(sizeof(struct kni_dev), dev_info.name, > +#ifdef NET_NAME_UNKNOWN > + NET_NAME_UNKNOWN, > +#endif > kni_net_init); > if (net_dev =3D=3D NULL) { > KNI_ERR("error allocating device \"%s\"\n", dev_info.name); > -- > 2.0.0 Will this interface be changed from kernel version 3.17? Would it be better to add kernel version check here instead? Regards, Helin