Bug 7137 - modprobe eth modules random loading order
Summary: modprobe eth modules random loading order
Status: REJECTED INVALID
Alias: None
Product: Networking
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 high
Assignee: Arnaldo Carvalho de Melo
URL:
Keywords:
: 7138 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-09 21:28 UTC by Charlie G Mentorez
Modified: 2006-09-11 19:37 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.17.x
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Charlie G Mentorez 2006-09-09 21:28:26 UTC
Most recent kernel where this bug did not occur:2.6.17.13
Distribution: Crux

Hardware Environment: All our P4 and PIII Servers

Software Environment: Not software dependable
Problem Description:
When upgrade to 2.6.17.11 then our servers with multiple NIC's changed the 
order it was loaded.
We use modules for NIC's in kernel config.
modprobe.conf are set up as this example.

alias eth0 e100
alias eth1 8139too

Efter upgrade to 2.6.17.11 the NIC which is first loaded is 8139too (Realtek) 
which then get eth0 
and second is the e100 (INTEL) eth1

Kernel 2.6.17.8 and erlier was loaded in the order of modprobe.conf settings.

After upgrade to 2.6.17.13 then the load order of eth modules have change 
again, and still dont folow the modprobe.conf setting.

Efter upgrade to 2.6.17.13 the NIC which now is loaded  first is the e100 eth0
(INTEL) and second is 8139too (Realtek) eht1

I have the same problem with 3com and realtek or 3com and Intel NIC's
it change the load order and don't folow the modprobe.conf settings.

Steps to reproduce:
Use to different NIC's and use 2.6.17.8 and config the driver as module in 
kernel config. use modprobe.conf and config as I have describe.
Change then to 2.6.7.11.

And then use 2.6.7.13 and see how the the NIC driver are loaded.

It seams to work ok with 3com and tulip based (D-LINK 4-port NIC
Comment 1 Andrew Morton 2006-09-09 22:18:05 UTC
On Sat, 9 Sep 2006 21:37:07 -0700
bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=7137
> 
>            Summary: modprobe eth modules random loading order
>     Kernel Version: 2.6.17.x
>             Status: NEW
>           Severity: high
>              Owner: acme@conectiva.com.br
>          Submitter: c.gm@usa.net
> 
> 
> Most recent kernel where this bug did not occur:2.6.17.13
> Distribution: Crux
> 
> Hardware Environment: All our P4 and PIII Servers
> 
> Software Environment: Not software dependable
> Problem Description:
> When upgrade to 2.6.17.11 then our servers with multiple NIC's changed the 
> order it was loaded.
> We use modules for NIC's in kernel config.
> modprobe.conf are set up as this example.
> 
> alias eth0 e100
> alias eth1 8139too
> 
> Efter upgrade to 2.6.17.11 the NIC which is first loaded is 8139too (Realtek) 
> which then get eth0 
> and second is the e100 (INTEL) eth1
> 
> Kernel 2.6.17.8 and erlier was loaded in the order of modprobe.conf settings.
> 
> After upgrade to 2.6.17.13 then the load order of eth modules have change 
> again, and still dont folow the modprobe.conf setting.
> 
> Efter upgrade to 2.6.17.13 the NIC which now is loaded  first is the e100 eth0
> (INTEL) and second is 8139too (Realtek) eht1
> 
> I have the same problem with 3com and realtek or 3com and Intel NIC's
> it change the load order and don't folow the modprobe.conf settings.
> 
> Steps to reproduce:
> Use to different NIC's and use 2.6.17.8 and config the driver as module in 
> kernel config. use modprobe.conf and config as I have describe.
> Change then to 2.6.7.11.
> 
> And then use 2.6.7.13 and see how the the NIC driver are loaded.
> 
> It seams to work ok with 3com and tulip based (D-LINK 4-port NIC_s) in the same 
> machine. In this case the NIC is loaded in the same order for all kernel 
> versions.
> 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> I asume, when using modules for NIC's drives should be loaded as ethX using the 
> setting in modprobe.conf.
> 
> It is really important the eth0 is loaded as it is configured in modprobe.conf 
> and not as the kernel find it in slot ID order.
> 
> This strange behavior cause a lot of reconfiguring then we use very complex 
> IPTEBLES rules. Iptable syntax for in/out NIC "-o -i" whill then not be correct.
> 
> And because:
> Using two different NIC one 1 Gbs and 100 Mbs. The 1 Gbs NIC should then be 
> assined the eth0 which is used for primary heavy load and the 100 Mbs is used 
> for maintenance.
> 
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.

argh.  Can annyone think what might have caused this?

Comment 2 Greg Kroah-Hartman 2006-09-10 06:01:32 UTC
The modprobe.conf line does not dictate the order in which the modules are
loaded.  That is done by a different function in your distro start-up scripts.

What distro are you using?  And what is loading these modules at boot time?
Is it udev?  Something else?

Why not just use persistant network names if you need to ensure that they
stay the same?  udev and other tools can provide this.
Comment 3 Alexey Dobriyan 2006-09-10 08:28:22 UTC
*** Bug 7138 has been marked as a duplicate of this bug. ***
Comment 4 Charlie G Mentorez 2006-09-10 14:57:56 UTC
So this can be related tu the latest upgrade of udev.
But the problem did occur only after upgrade the kernel nothing else was update.
So in some way the kernel and some other part of the dist make this problem.

I have notice there is some strange behavior using modles. It seams kernel or 
udev strat them in the order the answer on the slot/bus or by ID. That part is 
out of my knowlege

Crux dist using udev.

Any way this is an problem, I don't have tyhe knowlege how to get in to the 
relation between kernel and different part of Crux or any other Linux dist's

But the fact is, which still presist, that the problem occur after kernel 
upgrade.

And why dose some NIC's start in the order as they are configured in 
modprobe.conf? For example Tulip (D-link 4 port) using DECchip 21142/43.



Comment 5 Greg Kroah-Hartman 2006-09-11 19:37:34 UTC
Again, modprobe.conf has nothing to do with module loading order.

As this is a userspace udev issue, I suggest you contact your distro to get
it resolved there.

This is not a kernel issue, closing.

Note You need to log in before you can comment on or make changes to this bug.