]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Staging: hv: name network device ethX rather than sethX
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 11 Mar 2010 17:11:37 +0000 (09:11 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 21:57:04 +0000 (14:57 -0700)
commit 546d9e101e7a71e6202f47a13ddcd9b8fb05a52e upstream.

This patch makes the HyperV network device use the same naming scheme as
other virtual drivers (Xen, KVM). In an ideal world, userspace tools
would not care what the name is, but some users and applications do
care. Vyatta CLI is one of the tools that does depend on what the name
is.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/netvsc_drv.c

index 0d7459e2d0360b8996b104e1385df56bd9fd8150..4c3c8bc4bc38984a47c791a88a21f6cb9edfc79d 100644 (file)
@@ -413,8 +413,7 @@ static int netvsc_probe(struct device *device)
        if (!net_drv_obj->Base.OnDeviceAdd)
                return -1;
 
-       net = alloc_netdev(sizeof(struct net_device_context), "seth%d",
-                          ether_setup);
+       net = alloc_etherdev(sizeof(struct net_device_context));
        if (!net)
                return -1;