summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>2017-09-12 03:32:45 +0200
committerDavid S. Miller <davem@davemloft.net>2017-09-18 20:28:36 +0200
commitab076b94c6a3cfc4e5651d559750220543394871 (patch)
tree0d4fdeacebd10dcb6d646aab1dbf5e265557dc96 /drivers
parentnet: tcp_input: Neaten DBGUNDO (diff)
downloadlinux-ab076b94c6a3cfc4e5651d559750220543394871.tar.xz
linux-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>
Diffstat (limited to 'drivers')
-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;