lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100311091137.27f22c57@nehalam>
Date:	Thu, 11 Mar 2010 09:11:37 -0800
From:	Stephen Hemminger <shemminger@...tta.com>
To:	Hank Janssen <hjanssen@...rosoft.com>
Cc:	Greg KH <gregkh@...e.de>, netdev@...r.kernel.org
Subject: [PATCH] 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@...tta.com>
---
 drivers/staging/hv/netvsc_drv.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

--- a/drivers/staging/hv/netvsc_drv.c	2010-03-09 17:34:45.012686682 -0800
+++ b/drivers/staging/hv/netvsc_drv.c	2010-03-11 09:08:00.480877949 -0800
@@ -381,8 +381,7 @@ static int netvsc_probe(struct device *d
 	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;
 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ