* [net-next] dummy: declare dummy devices as enumerated devices
@ 2017-09-12 1:32 Zhang Shengju
2017-09-18 18:29 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Shengju @ 2017-09-12 1:32 UTC (permalink / raw)
To: davem, netdev, ezegomez
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>
---
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;
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [net-next] dummy: declare dummy devices as enumerated devices
2017-09-12 1:32 [net-next] dummy: declare dummy devices as enumerated devices Zhang Shengju
@ 2017-09-18 18:29 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-09-18 18:29 UTC (permalink / raw)
To: zhangshengju; +Cc: netdev, ezegomez
From: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Date: Tue, 12 Sep 2017 09:32:45 +0800
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-18 18:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-12 1:32 [net-next] dummy: declare dummy devices as enumerated devices Zhang Shengju
2017-09-18 18:29 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).