]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.33.4/staging-hv-name-network-device-ethx-rather-than-sethx.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.33.4 / staging-hv-name-network-device-ethx-rather-than-sethx.patch
CommitLineData
61ee496e
GKH
1From 546d9e101e7a71e6202f47a13ddcd9b8fb05a52e Mon Sep 17 00:00:00 2001
2From: Stephen Hemminger <shemminger@vyatta.com>
3Date: Thu, 11 Mar 2010 09:11:37 -0800
4Subject: Staging: hv: name network device ethX rather than sethX
5
6From: Stephen Hemminger <shemminger@vyatta.com>
7
8commit 546d9e101e7a71e6202f47a13ddcd9b8fb05a52e upstream.
9
10This patch makes the HyperV network device use the same naming scheme as
11other virtual drivers (Xen, KVM). In an ideal world, userspace tools
12would not care what the name is, but some users and applications do
13care. Vyatta CLI is one of the tools that does depend on what the name
14is.
15
16Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
17Cc: Hank Janssen <hjanssen@microsoft.com>
18Signed-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