From ab076b94c6a3cfc4e5651d559750220543394871 Mon Sep 17 00:00:00 2001 From: Zhang Shengju Date: Tue, 12 Sep 2017 09:32:45 +0800 Subject: [PATCH] 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//name_assign_type). Signed-off-by: Zhang Shengju Signed-off-by: David S. Miller --- drivers/net/dummy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c index d0a1f9c..e31ab3b 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; -- 2.7.4