mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 08:38:24 +08:00
Staging: hv: name network device ethX rather than sethX
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> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
fa8ad0257e
commit
546d9e101e
@ -403,8 +403,7 @@ static int netvsc_probe(struct device *device)
|
|||||||
if (!net_drv_obj->Base.OnDeviceAdd)
|
if (!net_drv_obj->Base.OnDeviceAdd)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
net = alloc_netdev(sizeof(struct net_device_context), "seth%d",
|
net = alloc_etherdev(sizeof(struct net_device_context));
|
||||||
ether_setup);
|
|
||||||
if (!net)
|
if (!net)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user