From: Matt Domsch <Matt_Domsch@dell.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Jon Masters <jonathan@jonmasters.org>,
Thomas Graf <tgraf@suug.ch>, Rick Jones <rick.jones2@hp.com>,
"Kok, Auke" <auke-jan.h.kok@intel.com>,
johnathan@jonmasters.org, netdev@vger.kernel.org,
dwmw2@infradead.org
Subject: Re: network interface *name* alias support?
Date: Sat, 24 May 2008 00:16:30 -0500 [thread overview]
Message-ID: <20080524051630.GD20890@auslistsprd01.us.dell.com> (raw)
In-Reply-To: <alpine.LNX.1.10.0805240646380.19084@fbirervta.pbzchgretzou.qr>
On Sat, May 24, 2008 at 06:53:17AM +0200, Jan Engelhardt wrote:
>
> On Saturday 2008-05-24 06:25, Jon Masters wrote:
> >
> >I guess that would also work quite nicely for what I want to do, but the
> >problem is that this will require either:
> >
> >*). The kernel decodes the DMI extension directly.
which is pretty easy to do.
>*). We can first inform each device which slot it is in (set the slot).
> >
> >My intention is to implement whatever seems reasonable, and my reason
> >for asking is that I am not a networking maintainer, so I want to know
> >what seems reasonable :)
>
> Why are we even looking at slot numbers? I do not think there is any
> guarantee that the order of slots as a human would recognize them on
> the board must always correspond to a monotonically increasing linear
> function.
The guarantee comes from the SMBIOS tables describing the slot
physically, including the label on the motherboard for it, as well as
the new SMBIOS table bits in the 2.6 spec that provide the linkage
between a PCI domain/bus/device/function to slot (or embedded)
mapping. New type 41, and extended type 9, can provide this linkage.
Dell late-model servers implement this in their BIOS.
Just to throw a wrench in, look at how udev handles disks presently.
The same physical device is represented in at least 6 different ways:
/dev/disk/by-{id,label,path,uuid,edd} and /dev/sdX. There was much
confusion at first when the /dev/hda IDE driver device names changed
to /dev/sda with the advent of libata. People used these alternate
naming schemes to circumvent the problem. The by-label and by-uuid
names didn't change. Only the tools that hard-coded /dev/hda needed
to change.
Conceptually I'm looking for the same thing. The kernel uses the
names ethN for most ethernet type devices. However, there might be
logical names we would want to assign (public, private, dmz, ...), or
some form of BIOS-assigned (Gb1, Gb2 to match the label printed on the
chassis), or some form of physical placement names (eth_embedded1,
eth_embedded2, eth_slot1_1 and eth_slot1_2 for a multiport card),
etc. Right now network devices have essentially one name; yes, you
can change it, at the peril of breaking all the tools that assume your
network cards are ethN, just as there was breakage for tools that
assumed disks were /dev/hda. But you can't have the multiple names.
In Fedora 10 rawhide, I'm prepared to change the names of the network
devices from ethN to eth_s0_1 (first embedded NIC) very early in the
process and try to find what all breaks. But it would be really nice
to be able to assign these other types of names to a device as well,
ideally without breaking tools that are counting on the ethN names.
Any options for doing so would be appreciated.
Thanks,
Matt
--
Matt Domsch
Linux Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux
next prev parent reply other threads:[~2008-05-24 5:17 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-23 16:31 network interface *name* alias support? Jan Engelhardt
2008-05-23 17:14 ` Kok, Auke
2008-05-23 17:44 ` Rick Jones
2008-05-23 19:06 ` Jon Masters
2008-05-23 19:11 ` Jon Masters
2008-05-23 20:46 ` Jan Engelhardt
2008-05-23 20:55 ` Jon Masters
2008-05-23 22:54 ` Thomas Graf
2008-05-24 4:25 ` Jon Masters
2008-05-24 4:53 ` Jan Engelhardt
2008-05-24 5:16 ` Matt Domsch [this message]
2008-05-24 9:15 ` James Chapman
2008-05-24 9:33 ` David Woodhouse
2008-05-24 10:37 ` James Chapman
2008-05-24 20:31 ` Patrick McHardy
2008-05-24 20:54 ` Jan Engelhardt
2008-05-25 3:07 ` Patrick McHardy
2008-05-25 12:17 ` David Miller
2008-05-27 19:03 ` Matt Domsch
2008-05-27 21:49 ` Jan Engelhardt
2008-05-27 22:11 ` Thomas Graf
2008-05-24 18:12 ` Stephen Hemminger
-- strict thread matches above, loose matches on Subject: below --
2008-05-21 22:47 Jon Masters
2008-05-23 13:07 ` David Woodhouse
2008-05-23 14:50 ` Jon Masters
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=20080524051630.GD20890@auslistsprd01.us.dell.com \
--to=matt_domsch@dell.com \
--cc=auke-jan.h.kok@intel.com \
--cc=dwmw2@infradead.org \
--cc=jengelh@medozas.de \
--cc=johnathan@jonmasters.org \
--cc=jonathan@jonmasters.org \
--cc=netdev@vger.kernel.org \
--cc=rick.jones2@hp.com \
--cc=tgraf@suug.ch \
/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).