Re: udev can't name PS3's network devices correctly

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Marco d'Itri <md@...>
Cc: Harald Hoyer <harald@...>, <linux-hotplug@...>, <netdev@...>
Date: Monday, April 14, 2008 - 6:08 am

On Mon, 2008-04-07 at 16:38 +0200, Marco d'Itri wrote:

Actually it's a generic problem. It also occurs on OLPC, where the
libertas wireless device presents two interfaces with the same MAC
address -- the 'eth%d' interface for normal 802.11 wireless, and the
'msh%d' interface for mesh. This approach fixes that too. Our previous
fix for that was 'TEST=="anycast_mask"' and 'TEST=="lbs_rtap"', which
are horridly device-specific hacks.

It isn't _broken_ to have more than one device on the same host with the
same MAC address; it's just unusual.

One thing I don't understand: Don't we already emit a KERNEL== criterion
in the case where there is already a udev rule 'reserving' the name that
the kernel used for the current device? Why is that one OK, and why only
in that case? This patch just makes it consistent.


Drivers shouldn't do that. It'll change the name of the device and may
confuse userspace :)


One alternative approach would be to use dev->dev_id (is that exported
in sysfs?). That's what IPv6 addrconf uses in addition to the MAC
address to provide a unique address when MAC addresses are shared.

We could modify the libertas and gelic (and any other affected) drivers
to provide a dev_id, make sure it's exported in sysfs, and then use that
in the udev rules. Would that make you happy?

It has implications w.r.t. the autoconfigured IPv6 addresses of those
devices, but I think we can cope with those. I'm probably the only
person in the world with an IPv6 address for a PS3 listed in DNS anyway.


Our general-purpose distribution installs and runs on PS3. :)

-- 
dwmw2

--
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)