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

[PATCH v7 14/33] net: caif_serial - set name assign type

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

The name is uniquely determined by the name of the TTY.

Signed-off-by: Tom Gundersen <redacted>
Cc: Dmitry Tarnyagin <redacted>
---
 drivers/net/caif/caif_serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/caif/caif_serial.c b/drivers/net/caif/caif_serial.c
index 27bbc56..4432462 100644
--- a/drivers/net/caif/caif_serial.c
+++ b/drivers/net/caif/caif_serial.c
@@ -349,7 +349,7 @@ static int ldisc_open(struct tty_struct *tty)
 	result = snprintf(name, sizeof(name), "cf%s", tty->name);
 	if (result >= IFNAMSIZ)
 		return -EINVAL;
-	dev = alloc_netdev(sizeof(*ser), name, NET_NAME_UNKNOWN,
+	dev = alloc_netdev(sizeof(*ser), name, NET_NAME_PREDICTABLE,
 			   caifdev_setup);
 	if (!dev)
 		return -ENOMEM;
-- 
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