summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>2017-09-12 09:32:45 +0800
committerDavid S. Miller <davem@davemloft.net>2017-09-18 11:28:36 -0700
commitab076b94c6a3cfc4e5651d559750220543394871 (patch)
tree0d4fdeacebd10dcb6d646aab1dbf5e265557dc96
parent3934788a7b4df71f8bd7a2a1f1c0480f06a2076e (diff)
downloadlwn-ab076b94c6a3cfc4e5651d559750220543394871.tar.gz
lwn-ab076b94c6a3cfc4e5651d559750220543394871.zip
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>
-rw-r--r--drivers/net/dummy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c
index d0a1f9ce3168..e31ab3b94c6f 100644
--- a/drivers/net/dummy.c
+++ b/drivers/net/dummy.c
@@ -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;