kni: set interface name source as user-space
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 13 Dec 2016 01:08:18 +0000 (02:08 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 29 Jan 2017 21:47:30 +0000 (22:47 +0100)
Signed-off-by: Michał Mirosław <michal.miroslaw@atendesoftware.pl>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/kni_misc.c

index b56914e..03dacc1 100644 (file)
@@ -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) {