On Tue, 2010-12-07 at 12:19 -0600, Matt Domsch wrote: > On Tue, Dec 07, 2010 at 06:16:22PM +0000, Ben Hutchings wrote: > > It appears that 'unknown slot' is treated as a specific slot and all > > devices with an unknown slot are given unique indices. Perhaps this > > doesn't matter in the end, since no name is generated when the slot is > > unknown. > > Yes on all counts. > > > However, the 2 NIC ports do have their own indices (specified with the > > dev_id attribute) and it should be possible to distinguish slots by > > PCI/PCIe topology even though the name given won't correspond to any > > markings on the motherboard. > > Tell me more about the dev_id attribute. I'm happy to use it, but I > don't understand the rules around populating it. As I understand it, dev_id is supposed to distinguish net devices corresponding to multiple ports on a single network controller. However, a value of 0 could mean either 'unspecified' or 'first port' so you would have to verify that multiple net devices for the same slot have unique dev_id values before taking them into account. Ben. -- Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. -- 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