mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Lundell <linux@lundell-bros.com>
To: "Dr. David Alan Gilbert" <gilbertd@treblig.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: hotplug e1000 failed after 32 times
Date: Sun, 19 Sep 2004 17:30:07 -0700	[thread overview]
Message-ID: <p0611043abd73d36c9a7b@[10.2.4.30]> (raw)
In-Reply-To: <20040919165000.GI1191@gallifrey>

At 5:50 PM +0100 9/19/04, Dr. David Alan Gilbert wrote:
>* Jonathan Lundell (linux@lundell-bros.com) wrote:
>
>>  Out of curiosity, though, isn't there a residual related problem, in
>>  that a reinserted card gets a new eth# as well? Not insurmountable, I
>>  suppose, but a bitch to automate.
>
>I do wonder why the eth# still gets exported to users - its a royal
>pain when you have multiple cards.  I guess naming by mac address
>isn't ideal either when you want to hot swap one!  Naming by
>pci slot would be kind of nice.

It's a little tricky doing that, since PCI buses get moved around 
dynamically as well. A typical quad Ethernet board (Intel's quad gig, 
for example) has a bridge onboard that creates an internal PCI bus. 
PCI numbers by bus:device:function. It happens that device tends to 
correspond to slot, but that's not at all necessary. And of course we 
can't assume that all systems use PCI buses.

In our systems, where we have lots of ports, we rename our eth's 
along these lines: eth1a, eth1b, eth2a, eth3a, where 1,2,3 are slots 
(we use 0 for motherboard ports) and a,b,c,d are ports on the card.

But doing that requires a per-system-type configuration file that 
describes how to determine which device is in which slot, and that's 
a little tricky because of the way PCI buses get renumbered.

MAC address makes a lousy port name, IMO, since the user typically 
has no way of knowing which port has which address. (And I'm reminded 
of the Solaris convention where by default all ports in the system 
have the same MAC address...).
-- 
/Jonathan Lundell.

  reply	other threads:[~2004-09-20  0:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-17  4:53 Li Shaohua
2004-09-17  5:14 ` Andrew Morton
2004-09-17  5:48   ` Li Shaohua
2004-09-17  9:05   ` Li Shaohua
2004-09-17 23:19     ` Andrew Morton
2004-09-17 23:34       ` Jeff Garzik
2004-09-19 16:04         ` Jonathan Lundell
2004-09-19 16:50           ` Dr. David Alan Gilbert
2004-09-20  0:30             ` Jonathan Lundell [this message]
2004-09-20  0:51         ` Li Shaohua
2004-09-20  2:55           ` Jeff Garzik
2004-09-20  4:15             ` Chris Leech
2004-09-20  4:35               ` Li Shaohua
2004-09-17  9:06   ` Li Shaohua

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='p0611043abd73d36c9a7b@[10.2.4.30]' \
    --to=linux@lundell-bros.com \
    --cc=gilbertd@treblig.org \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®