dummy: declare dummy devices as enumerated devices
Dummy device name is enumerated by the kernel, let user space be aware of the naming scheme used by dummy devices: (visible in /sys/class/net/<iface>/name_assign_type). Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3934788a7b
commit
ab076b94c6
|
@ -388,7 +388,7 @@ static int __init dummy_init_one(void)
|
|||
int err;
|
||||
|
||||
dev_dummy = alloc_netdev(sizeof(struct dummy_priv),
|
||||
"dummy%d", NET_NAME_UNKNOWN, dummy_setup);
|
||||
"dummy%d", NET_NAME_ENUM, dummy_setup);
|
||||
if (!dev_dummy)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Reference in New Issue