mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* eth0/1 swapped places after kernel Upgrade 3.0.8 -> 3.1.0 (and udev 172 -> 174)
@ 2011-11-02 10:14 Andrew Walrond
  2011-11-11 11:40 ` Andrew Walrond
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Walrond @ 2011-11-02 10:14 UTC (permalink / raw)
  To: linux-kernel

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)

Andrew Walrond


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: eth0/1 swapped places after kernel Upgrade 3.0.8 -> 3.1.0 (and udev 172 -> 174)
  2011-11-02 10:14 eth0/1 swapped places after kernel Upgrade 3.0.8 -> 3.1.0 (and udev 172 -> 174) Andrew Walrond
@ 2011-11-11 11:40 ` Andrew Walrond
  2011-11-11 11:56   ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Walrond @ 2011-11-11 11:40 UTC (permalink / raw)
  To: linux-kernel

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?

Relevant kernel messages:

bnx2: Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.1.11 (July 20, 2011)
bnx2 0000:03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
bnx2 0000:03:00.0: eth0: Broadcom NetXtreme II BCM5708 1000Base-T (B2) PCI-X 64-bit 133MHz found at mem f8000000, IRQ 16, node addr 00:1d:09:64:ae:03
bnx2 0000:07:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
bnx2 0000:07:00.0: eth1: Broadcom NetXtreme II BCM5708 1000Base-T (B2) PCI-X 64-bit 133MHz found at mem f4000000, IRQ 16, node addr 00:1d:09:64:ae:05
bnx2 0000:03:00.0: irq 47 for MSI/MSI-X
bnx2 0000:03:00.0: eth0: using MSI
bnx2 0000:03:00.0: eth0: NIC Copper Link is Up, 100 Mbps full duplex, receive & transmit flow control ON
bnx2 0000:07:00.0: irq 48 for MSI/MSI-X
bnx2 0000:07:00.0: eth1: using MSI
bnx2 0000:07:00.0: eth1: NIC Copper Link is Up, 1000 Mbps full duplex, receive & transmit flow control ON


Please let me know if I need to redirect this elsewhere.

> Andrew Walrond
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: eth0/1 swapped places after kernel Upgrade 3.0.8 -> 3.1.0 (and udev 172 -> 174)
  2011-11-11 11:40 ` Andrew Walrond
@ 2011-11-11 11:56   ` Alan Cox
  2011-11-11 12:37     ` Andrew Walrond
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2011-11-11 11:56 UTC (permalink / raw)
  To: Andrew Walrond; +Cc: linux-kernel

On Fri, 11 Nov 2011 11:40:15 +0000
Andrew Walrond <andrew@walrond.org> 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 ?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: eth0/1 swapped places after kernel Upgrade 3.0.8 -> 3.1.0 (and udev 172 -> 174)
  2011-11-11 11:56   ` Alan Cox
@ 2011-11-11 12:37     ` Andrew Walrond
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Walrond @ 2011-11-11 12:37 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

On Fri, Nov 11, 2011 at 11:56:17AM +0000, Alan Cox wrote:
> 
> 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 ?

I've just rebooted half a dozen times and the order does not change. so I'll
go stare at the udev diffs and see if I can work out what has changed there.

Thanks for your help

Andrew Walrond

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-11 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-02 10:14 eth0/1 swapped places after kernel Upgrade 3.0.8 -> 3.1.0 (and udev 172 -> 174) Andrew Walrond
2011-11-11 11:40 ` Andrew Walrond
2011-11-11 11:56   ` Alan Cox
2011-11-11 12:37     ` Andrew Walrond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®