Re: Network Device Naming mechanism and policy

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matt Domsch
Date: Thursday, April 9, 2009 - 7:58 am

On Tue, Mar 24, 2009 at 03:57:56PM -0700, David Miller wrote:


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 netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Network Device Naming mechanism and policy, Matt Domsch, (Tue Mar 24, 8:46 am)
Re: Network Device Naming mechanism and policy, Patrick McHardy, (Tue Mar 24, 9:21 am)
Re: Network Device Naming mechanism and policy, Kay Sievers, (Tue Mar 24, 9:28 am)
Re: Network Device Naming mechanism and policy, Patrick McHardy, (Tue Mar 24, 9:38 am)
Re: Network Device Naming mechanism and policy, Dan Williams, (Tue Mar 24, 9:40 am)
Re: Network Device Naming mechanism and policy, Karl O. Pinc, (Tue Mar 24, 9:42 am)
Re: Network Device Naming mechanism and policy, Alan Cox, (Tue Mar 24, 10:00 am)
Re: Network Device Naming mechanism and policy, Scott James Remnant, (Tue Mar 24, 10:02 am)
Re: Network Device Naming mechanism and policy, Patrick McHardy, (Tue Mar 24, 10:04 am)
Re: Network Device Naming mechanism and policy, Matt Domsch, (Tue Mar 24, 10:45 am)
Re: Network Device Naming mechanism and policy, Matt Domsch, (Tue Mar 24, 10:52 am)
Re: Network Device Naming mechanism and policy, Bill Nottingham, (Tue Mar 24, 11:12 am)
Re: Network Device Naming mechanism and policy, Scott James Remnant, (Tue Mar 24, 11:20 am)
Re: Network Device Naming mechanism and policy, david, (Tue Mar 24, 11:49 am)
Re: Network Device Naming mechanism and policy, david, (Tue Mar 24, 11:51 am)
Re: Network Device Naming mechanism and policy, Matt Domsch, (Tue Mar 24, 12:22 pm)
Re: Network Device Naming mechanism and policy, Alan Cox, (Tue Mar 24, 2:02 pm)
Re: Network Device Naming mechanism and policy, David Miller, (Tue Mar 24, 3:57 pm)
Re: Network Device Naming mechanism and policy, Greg KH, (Tue Mar 24, 4:14 pm)
Re: Network Device Naming mechanism and policy, Chris Friesen, (Wed Mar 25, 1:22 pm)
Re: Network Device Naming mechanism and policy, Matt Domsch, (Thu Mar 26, 9:39 am)
Re: Network Device Naming mechanism and policy, Dan Williams, (Thu Mar 26, 1:16 pm)
Re: Network Device Naming mechanism and policy, Dan Williams, (Thu Mar 26, 1:17 pm)
Re: Network Device Naming mechanism and policy, Len Brown, (Fri Mar 27, 9:06 am)
Re: Network Device Naming mechanism and policy, Kurt Van Dijck, (Tue Mar 31, 7:07 am)
Re: Network Device Naming mechanism and policy, Matt Domsch, (Thu Apr 9, 7:58 am)