On Tue, Mar 24, 2009 at 03:57:56PM -0700, David Miller wrote: > From: Matt Domsch <Matt_Domsch@xxxxxxxx> > Date: Tue, 24 Mar 2009 10:46:17 -0500 > > > Problem: Users expect on-motherboard NICs to be named eth0..ethN. > > This can be difficult to achieve. > > I learned a long time ago that eth0 et al. have zero meaning. > > If the system firmware folks gave us topology information with respect > to these things, we could export something that tools such as > NetworkManager, iproute2, etc. could use. > > For example, if we were told that PCI device "domain:bus:dev:fn" has > string label "Onboard Ethernet 0" then we could present that to the > user. > > Changing how the actual network device name is determined is going to > have zero traction. David, would you be opposed to the additional device names being done as device nodes in userspace, as several people suggested? /sys/devices/*/net/ifindex already exports the netlink device index. It would be trivial to add a /sys/devices/*/net/dev file, with <major>:<minor> for a device, where <minor> = ifindex. Then udev could then maintain /dev/net/by-{mac,path,...} as symlinks to /dev/net/$kernelname. Tools such as iproute's 'ip' could then be extended to look up their 'dev' argument by /dev path, resolve the symlink to name, get the device node, and open the socket with the minor number / index (as normal). Thanks, Matt -- Matt Domsch Linux Technology Strategist, Dell Office of the CTO linux.dell.com & www.dell.com/linux -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html