public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrzej Krzysztofowicz <ankry@pg.gda.pl>
To: rhw@MemAlpha.CX (Riley Williams)
Cc: mra@pobox.com (Mark Atwood),
	soruk@eridani.co.uk (Michael McConnell),
	linux-kernel@vger.kernel.org (Linux Kernel)
Subject: Re: How does "alias ethX drivername" in modules.conf work?
Date: Wed, 8 Aug 2001 11:30:34 +0200 (MET DST)	[thread overview]
Message-ID: <200108080930.LAA03334@sunrise.pg.gda.pl> (raw)
In-Reply-To: <Pine.LNX.4.33.0108072359440.30936-100000@infradead.org> from "Riley Williams" at Aug 08, 2001 12:35:54 AM

"Riley Williams wrote:"

>  1. InitScripts points at Kernel ...
>  2. Kernel replies ...
>  3. InitScripts then tells Kernel ...

I believe this discussion leads to constructive conlusions.
Even if that are 2.5+ conclusions.

> So far, I've only seen the above scenario occur, and I have to admit
> to having very little sympathy with it. However, I'm always open to
> persuasion that the above is not the situation that is occurring.

[...]

> Let's deal with the various scenarios that I can see:
> 
>  1. Just one interface, either static or hotplug.
Nothing interesting.

>  2. Multiple identical static interfaces.
Nothing interesting.

>  3. Multiple different static interfaces.
I see some subcases here:

3a. All interfaces are initialized

3b. Not all interfaces are initialized 
    [ "interface physicaly exist" != "interface is connected/configured"

3c. Interfaces supported by single driver are identical

3d. Interfaces supported by single driver are significantly different

I thing one met some common problems with the hotplug case here in the above
subcases.

>     At the moment, you are required to group these by the driver that
>     controls them, simply because each driver will automatically map
>     all interfaces that it supports when it is loaded. Likewise, you
>     are required to initialise interfaces in ascending order of their
>     name in the modules.conf file.
> 
>  4. Multiple hotplug interfaces.

I thing this case and 3. case should be solved both: for the modular drivers
case and for the built-in drivers case.

>     I have to admit to never having dealt with hotplug interfaces, but
>     I understand some aspects of the interface are still being ironed
>     out by the kernel developers. As a result, I would not be at all
>     surprised to hear that problems still exist.
> 
>  5. Multiple static and hotplug interfaces.
> 
>     At the moment, you are required to group these by whether the
>     interface is static or hotplug, configuring all static interfaces
>     before any of the hotplug ones. This therefore reduces to being
>     either case (2) or (3) followed by case (4), and should be dealt
>     with accordingly.

Consider complex situation: you have two drivers, each of them supporting
static and built in and hotplug interfaces.
Yes, this is a theoretical problem, but solving it would probably also solve
all (or almost all) of the above cases.

I like the idea of assigning names by MAC addresses. It IMO should solve
all problems as:
- if more then one interface has the same MAC address, they are probably
  identical, and you can switch them in hardware (cabling). Or am I
  wrong here?
- If you want to change the MAC address you do it *AFTER* the interface
  is initialized (driver is loaded, interface name is assigned). Or am 
  I also wrong here?

This seem to be a good idea if there's also support for "ether=" like
global kernel parameter working for build-in drivers.

> As a result, the ONLY time I can see any problem occurring is when
> there are multiple hotplug interfaces to deal with (case (4) above),
> and this is acknowledged to be a case where some of the issues have
> not yet been fully ironed out.
> 
> Can you agree with this analysis, or have I overlooked something?

Andrzej
-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk


  parent reply	other threads:[~2001-08-08  9:32 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200108080930.LAA03334@sunrise.pg.gda.pl \
    --to=ankry@pg.gda.pl \
    --cc=ankry@green.mif.pg.gda.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mra@pobox.com \
    --cc=rhw@MemAlpha.CX \
    --cc=soruk@eridani.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox