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
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| David Newall | Re: Slow DOWN, please!!! |
| Peter Zijlstra | [PATCH 00/23] per device dirty throttling -v8 |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
git: | |
