login
Header Space

 
 

Re: [PATCH] Expose netdevice dev_id through sysfs

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <dwmw2@...>
Cc: <kay.sievers@...>, <md@...>, <harald@...>, <linux-hotplug@...>, <netdev@...>, <schwidefsky@...>
Date: Saturday, April 19, 2008 - 9:33 pm

From: David Woodhouse <dwmw2@infradead.org>
Date: Mon, 14 Apr 2008 13:32:02 +0100


As far as I can tell there is only one driver, s390's qeth, even
setting netdev->dev_id.

And this driver is providing netdev->dev_id uniqueness amongst qeth
device instances.

But that's not the problem we're trying to solve.

We're trying to provide uniqueness amongst all devices in the system
that are using the same MAC address.

On a Sparc system, for example, ethernet chips driven by several
different drivers can end up with the same MAC address, as the
system IDPROM specified ethernet MAC is what will be used by
default.

So we need some global scheme.  And this dev_id value would need to be
persistent.  As best as I can tell, such things aren't available.
Sure we could do something silly like use the device I/O physical
address, but that would defeat the whole purpose of making device
identification agnostic to I/O bus geography.  I could move the
card to a different slot and it would have a different dev_id.

We therefore need a more concrete and workable plan to resolve
this issue.
--
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:
Re: udev can't name PS3's network devices correctly, David Woodhouse, (Mon Apr 14, 6:08 am)
Re: udev can't name PS3's network devices correctly, Marco d'Itri, (Mon Apr 14, 8:51 am)
Re: udev can't name PS3's network devices correctly, David Woodhouse, (Mon Apr 14, 9:38 am)
Re: udev can't name PS3's network devices correctly, Kay Sievers, (Mon Apr 14, 8:03 am)
Re: udev can't name PS3's network devices correctly, David Woodhouse, (Mon Apr 14, 8:19 am)
Re: udev can't name PS3's network devices correctly, Kay Sievers, (Mon Apr 14, 8:52 am)
Re: udev can't name PS3's network devices correctly, David Woodhouse, (Mon Apr 14, 9:16 am)
Re: udev can't name PS3's network devices correctly, David Woodhouse, (Mon Apr 14, 7:11 am)
Re: udev can't name PS3's network devices correctly, Kay Sievers, (Mon Apr 14, 7:55 am)
Re: udev can't name PS3's network devices correctly, David Woodhouse, (Sun Apr 27, 1:37 pm)
Re: udev can't name PS3's network devices correctly, Kay Sievers, (Sun Apr 27, 2:28 pm)
[PATCH] Expose netdevice dev_id through sysfs, David Woodhouse, (Sun Apr 20, 7:22 am)
[PATCH] Expose netdevice dev_id through sysfs, David Woodhouse, (Mon Apr 14, 8:32 am)
Re: [PATCH] Expose netdevice dev_id through sysfs, David Miller, (Sat Apr 19, 9:33 pm)
Re: [PATCH] Expose netdevice dev_id through sysfs, David Woodhouse, (Sun Apr 20, 6:50 am)
Re: [PATCH] Expose netdevice dev_id through sysfs, David Miller, (Sun Apr 20, 6:55 am)
Re: [PATCH] Expose netdevice dev_id through sysfs, David Woodhouse, (Sun Apr 20, 7:12 am)
Re: [PATCH] Expose netdevice dev_id through sysfs, David Miller, (Sun Apr 20, 7:14 am)
Re: [PATCH] Expose netdevice dev_id through sysfs, Andrey Borzenkov, (Sun Apr 20, 1:21 am)
Re: [PATCH] Expose netdevice dev_id through sysfs, David Miller, (Sun Apr 20, 1:32 am)
speck-geostationary