Thread (55 messages) 55 messages, 10 authors, 2014-07-16
STALE4368d

[PATCH v7 32/33] net: x25_asy - set name assign type

From: Tom Gundersen <hidden>
Date: 2014-07-10 08:19:15
Also in: lkml
Subsystem: networking drivers, the rest · Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

Names are given by the first available X.25 channel, so order
of device creation matters.

Signed-off-by: Tom Gundersen <redacted>
---
 drivers/net/wan/x25_asy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wan/x25_asy.c b/drivers/net/wan/x25_asy.c
index df6c073..2821f8b 100644
--- a/drivers/net/wan/x25_asy.c
+++ b/drivers/net/wan/x25_asy.c
@@ -81,8 +81,8 @@ static struct x25_asy *x25_asy_alloc(void)
 		char name[IFNAMSIZ];
 		sprintf(name, "x25asy%d", i);
 
-		dev = alloc_netdev(sizeof(struct x25_asy), name,
-				   NET_NAME_UNKNOWN, x25_asy_setup);
+		dev = alloc_netdev(sizeof(struct x25_asy),
+				   name, NET_NAME_ENUM, x25_asy_setup);
 		if (!dev)
 			return NULL;
 
-- 
1.9.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help