Commit ab076b94 authored by Zhang Shengju's avatar Zhang Shengju Committed by David S. Miller

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: default avatarZhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3934788a
...@@ -388,7 +388,7 @@ static int __init dummy_init_one(void) ...@@ -388,7 +388,7 @@ static int __init dummy_init_one(void)
int err; int err;
dev_dummy = alloc_netdev(sizeof(struct dummy_priv), 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) if (!dev_dummy)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment