linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Domsch <Matt_Domsch@dell.com>
To: david@lang.hm
Cc: netdev@vger.kernel.org, linux-hotplug@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: Network Device Naming mechanism and policy
Date: Tue, 24 Mar 2009 19:22:25 +0000	[thread overview]
Message-ID: <20090324192225.GC22700@auslistsprd01.us.dell.com> (raw)
In-Reply-To: <alpine.DEB.1.10.0903241140530.16753@asgard.lang.hm>

On Tue, Mar 24, 2009 at 11:49:26AM -0700, david@lang.hm wrote:
> On Tue, 24 Mar 2009, Matt Domsch wrote:
> 
> >You may recall http://lkml.org/lkml/2006/9/29/268, wherein I described
> >network device enumeration and naming challenges, and several possible
> >fixes.  Of these, Fix #1 (fix the PCI device list to be sorted
> >breadth-first) has been implemented in the kernel, and Fix #3 (system
> >board routing rules) have been implemented on Dell PowerEdge 10G and
> >11G servers (11G begin selling RSN).
> >
> >However, these have not been completely satisfactory.  In particular,
> >it keeps getting harder and harder to route PCI-Express lanes to
> >guarantee the same ordering between a depth-first and breadth-first
> >walk, and it turns out, that isn't sufficient anyhow.
> >
> >
> >Problem:  Users expect on-motherboard NICs to be named eth0..ethN.  This 
> >can be difficult to achieve.
> 
> I dispute this statement.
> 
> I have several hundred servers that have the on-motherboard NICs as the 
> last ones.
> 
> anyone who's been making the assumption you describe will have been 
> running into problems for many years.
> 
> it's just not a valid assumption.

I agree it's not a valid assumption.

People seem to want two things with names:
1) that devices be named deterministically
2) that the determinism doesn't change on a per-platform or
   per-configuration-of-a-platform basis.

This tends to mean they want the onboard devices named first, then the
add-in devices named.  But not necessarily.  I would hope to have a
deterministic naming method that would work for most people by
default, but that could be changed (in userspace) as necessary.

> >4) When adding a network card to an existing system, what should the
> >  ports on the new card be named?  If it is added, they will be named
> >  ethN+1... above the existing named cards.  This means a (new)
> >  add-in card in PCI slot 3 may have ports named eth5 and eth6, while
> >  an add-in card in PCI slot 5 may have ports named eth2 and eth3.
> >  This is not intuitive.
> 
> this approach causes serious problems in a few cases, including
> 
> 1. a NIC goes bad and you replace it. now all the configs change
> 
> 2. you reinstall a box and it's interface names change.

Right.  These cases are only deterministic because they start from a
known state; change or remove that state, and you're back to
non-deterministic.

-- 
Matt Domsch
Linux Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux

  reply	other threads:[~2009-03-24 19:22 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-24 15:46 Network Device Naming mechanism and policy Matt Domsch
2009-03-24 16:21 ` Patrick McHardy
2009-03-24 16:28   ` Kay Sievers
2009-03-24 16:38     ` Patrick McHardy
2009-03-24 16:40   ` Dan Williams
2009-03-24 17:00     ` Alan Cox
2009-03-24 17:04     ` Patrick McHardy
2009-03-24 18:51     ` david
2009-03-24 21:02       ` Alan Cox
2009-03-24 23:14         ` Greg KH
2009-03-24 16:42 ` Karl O. Pinc
2009-03-24 17:45   ` Matt Domsch
2009-03-24 17:02 ` Scott James Remnant
2009-03-24 17:52   ` Matt Domsch
2009-03-24 18:12     ` Bill Nottingham
2009-03-24 18:20       ` Scott James Remnant
2009-03-24 18:49 ` david
2009-03-24 19:22   ` Matt Domsch [this message]
2009-03-24 22:57 ` David Miller
2009-03-25 20:22   ` Chris Friesen
2009-03-26 20:17     ` Dan Williams
2009-03-26 16:39   ` Matt Domsch
2009-03-26 20:16     ` Dan Williams
2009-03-27 16:06       ` Len Brown
2009-04-09 14:58   ` Matt Domsch
2009-03-31 14:07 ` Kurt Van Dijck

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=20090324192225.GC22700@auslistsprd01.us.dell.com \
    --to=matt_domsch@dell.com \
    --cc=david@lang.hm \
    --cc=linux-hotplug@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@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).