From: Michał Mirosław Date: Tue, 13 Dec 2016 01:08:18 +0000 (+0100) Subject: kni: set interface name source as user-space X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4d0db6df1ce7118c5184bba8e9e3f13d91f889b2;p=dpdk.git kni: set interface name source as user-space Signed-off-by: Michał Mirosław Acked-by: Ferruh Yigit --- diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c index b56914e99b..03dacc1f90 100644 --- a/lib/librte_eal/linuxapp/kni/kni_misc.c +++ b/lib/librte_eal/linuxapp/kni/kni_misc.c @@ -362,8 +362,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, #endif kni_net_init); if (net_dev == NULL) {