]>
Commit | Line | Data |
---|---|---|
61ee496e GKH |
1 | From 546d9e101e7a71e6202f47a13ddcd9b8fb05a52e Mon Sep 17 00:00:00 2001 |
2 | From: Stephen Hemminger <shemminger@vyatta.com> | |
3 | Date: Thu, 11 Mar 2010 09:11:37 -0800 | |
4 | Subject: Staging: hv: name network device ethX rather than sethX | |
5 | ||
6 | From: Stephen Hemminger <shemminger@vyatta.com> | |
7 | ||
8 | commit 546d9e101e7a71e6202f47a13ddcd9b8fb05a52e upstream. | |
9 | ||
10 | This patch makes the HyperV network device use the same naming scheme as | |
11 | other virtual drivers (Xen, KVM). In an ideal world, userspace tools | |
12 | would not care what the name is, but some users and applications do | |
13 | care. Vyatta CLI is one of the tools that does depend on what the name | |
14 | is. | |
15 | ||
16 | Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> | |
17 | Cc: Hank Janssen <hjanssen@microsoft.com> | |
18 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
19 | ||
20 | --- | |
21 | drivers/staging/hv/netvsc_drv.c | 3 +-- | |
22 | 1 file changed, 1 insertion(+), 2 deletions(-) | |
23 | ||
24 | --- a/drivers/staging/hv/netvsc_drv.c | |
25 | +++ b/drivers/staging/hv/netvsc_drv.c | |
26 | @@ -413,8 +413,7 @@ static int netvsc_probe(struct device *d | |
27 | if (!net_drv_obj->Base.OnDeviceAdd) | |
28 | return -1; | |
29 | ||
30 | - net = alloc_netdev(sizeof(struct net_device_context), "seth%d", | |
31 | - ether_setup); | |
32 | + net = alloc_etherdev(sizeof(struct net_device_context)); | |
33 | if (!net) | |
34 | return -1; | |
35 |