linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@linux-foundation.org>
To: Dan Williams <dcbw-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: linux-wireless@vger.kernel.org
Subject: Re: airo
Date: Tue, 26 Jun 2007 21:58:53 -0400	[thread overview]
Message-ID: <20070626215853.45d81292@oldman> (raw)
In-Reply-To: <1182805834.10966.0.camel@xo-13-A4-25.localdomain>

On Mon, 25 Jun 2007 17:10:34 -0400
Dan Williams <dcbw-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:

> On Mon, 2007-06-25 at 14:50 -0500, Larry Finger wrote:
> > Matteo Croce wrote:
> > > Exactly, the boot process goes so:
> > > 1) udev loads forcedeth.ko and it gets eth0
> > > 2) udev also loads airo.ko
> > > 3) forcedeth loads very fast and udev renames it to eth1 according to /etc/iftab
> > > 4) airo slowly init the card and try to get eth1 as name, but found it busy and die()
> > > 
> > > Personally I solved this by deleting forcedeth.ko. I know that it's ugly, but I don't use wired etherned
> > > and i hate do "rmmod airo ; modprobe airo" at every boot, also in a shell script.
> > 
> > What does /etc/udev/rules.d/30-net_persistent_names.rules say about the name for the MAC address of 
> > the wired interface? On my system, the wired one is forced to be eth0 and the wireless to be eth1.
> 
> Even so, drivers need to be safe against device renames at any stage.
> 
> Dan
> 
> 

Name should NOT be used for anything but messages (and request_irq).
The driver should use ifindex if it needs some persistent token.
Using rtnl_lock() works but it can't be held across hotplug or other events.

      reply	other threads:[~2007-06-27  1:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200706061903.13228.rootkit85@yahoo.it>
     [not found] ` <46693003.8090406@redhat.com>
     [not found]   ` <200706091519.29319.rootkit85@yahoo.it>
2007-06-09 16:16     ` airo Matteo Croce
2007-06-25 14:38       ` airo Michal Schmidt
2007-06-25 15:05         ` airo Dan Williams
2007-06-25 15:17           ` airo Michal Schmidt
2007-06-25 15:48             ` airo Michal Schmidt
2007-06-25 19:27         ` airo Matteo Croce
2007-06-25 19:50           ` airo Larry Finger
2007-06-25 21:10             ` airo Dan Williams
2007-06-27  1:58               ` Stephen Hemminger [this message]

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=20070626215853.45d81292@oldman \
    --to=shemminger@linux-foundation.org \
    --cc=dcbw-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-wireless@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).