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

[PATCH v7 20/33] net: irlan - set name assign type

From: Tom Gundersen <hidden>
Date: 2014-07-10 08:24:49
Also in: lkml
Subsystem: networking [general], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

Signed-off-by: Tom Gundersen <redacted>
Cc: Samuel Ortiz <redacted>
Cc: Dragos Foianu <redacted>
---
 include/net/irda/irlan_eth.h  | 2 +-
 net/irda/irlan/irlan_common.c | 2 +-
 net/irda/irlan/irlan_eth.c    | 7 ++++---
 3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/include/net/irda/irlan_eth.h b/include/net/irda/irlan_eth.h
index de5c816..00fd2f8 100644
--- a/include/net/irda/irlan_eth.h
+++ b/include/net/irda/irlan_eth.h
@@ -25,7 +25,7 @@
 #ifndef IRLAN_ETH_H
 #define IRLAN_ETH_H
 
-struct net_device *alloc_irlandev(const char *name);
+struct net_device *alloc_irlandev(const char *name, unsigned char name_assign_type);
 int  irlan_eth_receive(void *instance, void *sap, struct sk_buff *skb);
 
 void irlan_eth_flow_indication( void *instance, void *sap, LOCAL_FLOW flow);
diff --git a/net/irda/irlan/irlan_common.c b/net/irda/irlan/irlan_common.c
index 7ac4d1b..5a458b0 100644
--- a/net/irda/irlan/irlan_common.c
+++ b/net/irda/irlan/irlan_common.c
@@ -204,7 +204,7 @@ static struct irlan_cb *irlan_open(__u32 saddr, __u32 daddr)
 	IRDA_DEBUG(2, "%s()\n", __func__ );
 
 	/* Create network device with irlan */
-	dev = alloc_irlandev(eth ? "eth%d" : "irlan%d");
+	dev = alloc_irlandev(eth ? "eth%d" : "irlan%d", NET_NAME_ENUM);
 	if (!dev)
 		return NULL;
 
diff --git a/net/irda/irlan/irlan_eth.c b/net/irda/irlan/irlan_eth.c
index dc13f1a..b62a822 100644
--- a/net/irda/irlan/irlan_eth.c
+++ b/net/irda/irlan/irlan_eth.c
@@ -94,10 +94,11 @@ static void irlan_eth_setup(struct net_device *dev)
  *    Allocate network device and control block
  *
  */
-struct net_device *alloc_irlandev(const char *name)
+struct net_device *alloc_irlandev(const char *name,
+				  unsigned char name_assign_type)
 {
-	return alloc_netdev(sizeof(struct irlan_cb), name, NET_NAME_UNKNOWN,
-			    irlan_eth_setup);
+	return alloc_netdev(sizeof(struct irlan_cb), name,
+			    name_assign_type, irlan_eth_setup);
 }
 
 /*
-- 
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