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 DB3F5370 for ; Wed, 14 Dec 2016 18:06:26 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP; 14 Dec 2016 09:06:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,347,1477983600"; d="scan'208";a="42498392" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.29]) ([10.237.220.29]) by fmsmga005.fm.intel.com with ESMTP; 14 Dec 2016 09:06:24 -0800 To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , dev@dpdk.org References: From: Ferruh Yigit Message-ID: <817f957e-80c3-bfc0-e02b-55f397581708@intel.com> Date: Wed, 14 Dec 2016 17:06:23 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH 10/13] KNI: provided netif name's source is user-space X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2016 17:06:27 -0000 Hi Michal, On 12/13/2016 1:08 AM, Michał Mirosław wrote: > Signed-off-by: Michał Mirosław > --- > 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 497db9b..f0247aa 100644 > --- a/lib/librte_eal/linuxapp/kni/kni_misc.c > +++ b/lib/librte_eal/linuxapp/kni/kni_misc.c > @@ -363,8 +363,8 @@ kni_ioctl_create(struct net *net, uint32_t ioctl_num, > up_read(&knet->kni_list_lock); > > net_dev = alloc_netdev(sizeof(struct kni_dev), dev_info.name, > -#ifdef NET_NAME_UNKNOWN > - NET_NAME_UNKNOWN, > +#ifdef NET_NAME_USER > + NET_NAME_USER, Probably NET_NAME_USER fits better to definition. But functionally, I wonder if you have a use case to use "name_assign_type" ? > #endif > kni_net_init); > if (net_dev == NULL) { >