public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How does "alias ethX drivername" in modules.conf work?
@ 2001-08-03 21:29 Mark Atwood
  2001-08-04  1:21 ` Chris Wedgwood
                   ` (3 more replies)
  0 siblings, 4 replies; 48+ messages in thread
From: Mark Atwood @ 2001-08-03 21:29 UTC (permalink / raw)
  To: linux-kernel


I'm trying to figure out how "alias ethX" works in /etc/modules.conf

Is it some "magic" in depmod / modprobe? And how is the network
interface identifier then passed into the module when it loads?

A nice whitepaper or doc or a few pointers or handholding would be
apprecated.

-- 
Mark Atwood   | I'm wearing black only until I find something darker.
mra@pobox.com | http://www.pobox.com/~mra

^ permalink raw reply	[flat|nested] 48+ messages in thread
* Re: How does "alias ethX drivername" in modules.conf work?
@ 2001-08-07 20:51 Stuart Lynne
  2001-08-08  2:36 ` Bill Nottingham
  0 siblings, 1 reply; 48+ messages in thread
From: Stuart Lynne @ 2001-08-07 20:51 UTC (permalink / raw)
  To: linux-kernel


>  >>> Lets assume that eth0-eth3 are not initialized at boot time and
>  >>> your init scripts attempt to initialize eth4 ...
> 
> I gather that I misunderstood what you were saying above, so let me
> clarify what I now understand by your comments:
> 
>  1. You are assuming a broken set of init scripts. Specifically,
>     they load the individual modules manually by the name of the
>     module, rather than stating that you wish to initialise a
>     particular interface and letting kmod sort out the correct
>     module.
> 
>     If this is your assumption, then you've created an artificial
>     situation that by its very nature is broken and unreliable.
> 

>  >>> To avoid such problems one probably should add a lot of
>  >>> pre-install parameters in modules.conf.
> 
>  >> What problems?
> 
>  > Described above.
> 
> What KERNEL problems then? I don't see any yet.

So not being able to reliable map ethernet devices to names is a feature
not a bug .... 

It *should* be possible to reliably name devices without having to rely
on order dependant initialization.

-- 
                                            __O 
Lineo - For Embedded Linux Solutions      _-\<,_ 
PGP Fingerprint: 28 E2 A0 15 99 62 9A 00 (_)/ (_) 88 EC A3 EE 2D 1C 15 68
Stuart Lynne <sl@fireplug.net>         www.lineo.com         604-461-7532

^ permalink raw reply	[flat|nested] 48+ messages in thread
* Re: How does "alias ethX drivername" in modules.conf work?
@ 2001-08-08 13:59 Matt_Domsch
  0 siblings, 0 replies; 48+ messages in thread
From: Matt_Domsch @ 2001-08-08 13:59 UTC (permalink / raw)
  To: linux-kernel

> Userspace init scripts point the finger at kernel, saying "there
> is no good and no well documented mapping method". Kernel points
> its finger at userspace, saying "this is the way we do it" and
> "we cant guarantee a perfect 100% mapping solution, so we're not
> even going to try for 90%" and "futz with your drivers and
> modules.conf and init scripts till you get something that
> works".

Ethtool can help out initscripts, and I've recently submitted patches to the
appropriate maintainers for the eepro100 (both in-kernel and Donald's),
acenic, bcm5700, Intel e100 and e1000, so those cards report back their
assignments when using ethtool.  Several other drivers already have this
support in them.

ethtool -i eth0 returns:
driver: eepro100
version: someversionstring
firmware-version: someversionstring
bus-info: 00:05.0

Now you know at least that eth0 is an eepro100-driven card, and it's a PCI
device at 00:05.0.  lspci can give you the name of the card then if you want
it.
This helps, but doesn't solve the problem of knowing, looking from the
outside, which physical card is considered eth0, or conversely, what ethX
assignment did my embedded NIC get.  On x86, the $PIR PCI IRQ Routing Table
provided by BIOS can help.  It describes embedded (Slot 0) or add-in (Slot
x>0) cards using slot names likely silkscreened on the motherboard or
numbered externally.

Slot 0: PCI 00:05.
Slot 0: PCI 00:06.
Slot 0: PCI 00:08.
Slot 0: PCI 00:0f.
Slot 1: PCI 00:07.
Slot 2: PCI 03:08.
Slot 3: PCI 03:09.
Slot 4: PCI 03:0a.
Slot 5: PCI 03:0b.
Slot 6: PCI 0d:0c.
Slot 7: PCI 0d:0d.

A little sorting is required, as the table doesn't include (or for it's
purposes need to include) the PCI function number of multi-function devices,
but at least you know what's embedded and what's add-in now, and what
physical PCI slot.

I'm continuing to flesh out this idea, so if you've got thoughts for how to
make good use of this info, please let me know.

Thanks,
Matt

-- 
Matt Domsch
Sr. Software Engineer
Dell Linux Solutions
www.dell.com/linux
#2 Linux Server provider with 17% in the US and 14% Worldwide (IDC)!
#3 Unix provider with 18% in the US (Dataquest)!




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

end of thread, other threads:[~2002-03-31  3:03 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-03 21:29 How does "alias ethX drivername" in modules.conf work? Mark Atwood
2001-08-04  1:21 ` Chris Wedgwood
2001-08-04  1:32   ` Thomas Duffy
2001-08-04  2:31     ` Chris Wedgwood
2001-08-04  4:39     ` Jim Roland
2001-08-04 19:35     ` Riley Williams
2001-08-06 19:59       ` Thomas Duffy
2001-08-06 22:56         ` Riley Williams
2001-08-06 23:46           ` Andrzej Krzysztofowicz
2001-08-07  7:04             ` Riley Williams
2001-08-07 10:49               ` Andrzej Krzysztofowicz
2001-08-07 19:04                 ` Riley Williams
2001-08-07 21:46                   ` Mark Atwood
2001-08-07 22:33                     ` Tim Jansen
2001-08-07 23:06                       ` Josh Wyatt
2001-08-07 23:35                     ` Riley Williams
2001-08-08  0:04                       ` Josh Wyatt
2001-08-08  6:28                         ` Riley Williams
2001-08-08 10:59                           ` Alan Cox
2001-08-08  0:08                       ` Mark Atwood
2001-08-08  6:40                         ` Riley Williams
2001-08-08  8:41                           ` Andrzej Krzysztofowicz
2001-08-08 10:52                             ` Eric W. Biederman
2001-08-08 11:40                               ` Andrzej Krzysztofowicz
2001-08-08 22:04                               ` Riley Williams
2001-08-08 21:09                             ` Riley Williams
2001-08-08  0:11                       ` Mark Atwood
2001-08-08  6:47                         ` Riley Williams
2001-08-08  0:16                       ` Mark Atwood
2001-08-08 20:26                         ` Riley Williams
2001-08-08  9:30                       ` Andrzej Krzysztofowicz
2001-08-08 21:31                         ` Riley Williams
2001-08-08 21:42                           ` Alan Cox
2001-08-08 22:24                           ` Horst von Brand
     [not found]                     ` <9kpub6$8fu$1@ns1.clouddancer.com>
2001-08-09 20:05                       ` Colonel
2001-08-10  6:32       ` Paul Gortmaker
2001-08-10 21:25         ` Riley Williams
2001-08-15  4:32           ` Paul Gortmaker
2002-03-28  2:52   ` How to tell how much to expect from a fd Mark Atwood
2002-03-28 13:27     ` Eric Lammerts
2002-03-31  3:03     ` David Schwartz
2001-08-04  4:33 ` How does "alias ethX drivername" in modules.conf work? Jim Roland
2001-08-04  4:48 ` Jim Roland
     [not found] ` <15SnZL-05h4nQC@fmrl06.sul.t-online.com>
2001-08-06 19:46   ` How to hack a network driver to use a specific ethX (was Re: How does "alias ethX drivername" in modules.conf work?) Mark Atwood
  -- strict thread matches above, loose matches on Subject: below --
2001-08-07 20:51 How does "alias ethX drivername" in modules.conf work? Stuart Lynne
2001-08-08  2:36 ` Bill Nottingham
2001-08-08  5:45   ` Greg KH
2001-08-08 13:59 Matt_Domsch

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