From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from demumfd002.nsn-inter.net (demumfd002.nsn-inter.net [93.183.12.31]) by dpdk.org (Postfix) with ESMTP id 6C161B374 for ; Mon, 18 Aug 2014 14:43:53 +0200 (CEST) Received: from demuprx016.emea.nsn-intra.net ([10.150.129.55]) by demumfd002.nsn-inter.net (8.14.3/8.14.3) with ESMTP id s7IClGpV013176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 18 Aug 2014 12:47:16 GMT Received: from ak-desktop.emea.nsn-net.net ([10.144.35.206]) by demuprx016.emea.nsn-intra.net (8.12.11.20060308/8.12.11) with ESMTP id s7IClEZI016229; Mon, 18 Aug 2014 14:47:15 +0200 From: Aaro Koskinen To: dev@dpdk.org Date: Mon, 18 Aug 2014 15:44:59 +0300 Message-Id: <1408365899-29179-1-git-send-email-aaro.koskinen@nsn.com> X-Mailer: git-send-email 2.0.0 X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-size: 852 X-purgate-ID: 151667::1408366036-00007A71-F6B2472B/0/0 Subject: [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: Mon, 18 Aug 2014 12:43:53 -0000 In the series of ever-lasting ugly #ifdefs trying make out-of-tree drivers to support latest mainline kernel... Signed-off-by: Aaro Koskinen --- lib/librte_eal/linuxapp/kni/kni_misc.c | 3 +++ 1 file changed, 3 insertions(+) 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 long ioctl_param) up_read(&kni_list_lock); net_dev = alloc_netdev(sizeof(struct kni_dev), dev_info.name, +#ifdef NET_NAME_UNKNOWN + NET_NAME_UNKNOWN, +#endif kni_net_init); if (net_dev == NULL) { KNI_ERR("error allocating device \"%s\"\n", dev_info.name); -- 2.0.0