kni: set interface name source as user-space

Signed-off-by: Michał Mirosław <michal.miroslaw@atendesoftware.pl>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
Michał Mirosław 2016-12-13 02:08:18 +01:00 committed by Thomas Monjalon
parent ee04d5197b
commit 4d0db6df1c

View 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) {