Re: eth0/1 swapped places after kernel Upgrade 3.0.8 -> 3.1.0 (andudev 172 -> 174)

From: Alan Cox
Date: Fri Nov 11 2011 - 06:55:19 EST


On Fri, 11 Nov 2011 11:40:15 +0000
Andrew Walrond <andrew@xxxxxxxxxxx> wrote:

> On Wed, Nov 02, 2011 at 10:14:04AM +0000, Andrew Walrond wrote:
> > Not sure if this is a udev or kernel issue, or indeed whether I
> > should expect these devices to have persistent naming at all
> > without some udev configuration of my own, but I thought I'd
> > report it just in case it's useful.
> >
> > Output from lspci:
> >
> > 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
> > 07:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
> >
>
> It's worse than I thought; eth0/eth1 are randomly swapping places on boot.
> Is this likely to be a kernel or udev problem?

The kernel probes them in whatever order it walks the PCI bus. What udev
does afterwards is a distro question.

Does the order of the two probe reports every change or just the final
udev result - ie are they always found mac xx:xx:03 then xx:xx:05 ?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/