From: Matt Domsch <Matt_Domsch@dell.com>
To: "Loke, Chetan" <Chetan.Loke@netscout.com>
Cc: Florian Weimer <fweimer@bfk.de>,
linux-net@vger.kernel.org,
Michael Di Domenico <mdidomenico4@gmail.com>,
linux-kernel@vger.kernel.org, kay.sievers@vrfy.org
Subject: Re: nic enumeration
Date: Fri, 9 Jul 2010 12:15:29 -0500 [thread overview]
Message-ID: <20100709171529.GA27241@auslistsprd01.us.dell.com> (raw)
In-Reply-To: <D3F292ADF945FB49B35E96C94C2061B90C3CF3E9@nsmail.netscout.com>
On Fri, Jul 09, 2010 at 12:27:53PM -0400, Loke, Chetan wrote:
> Ok, no renaming, I would like a reference. And symlink just doesn't work
> w/ the udevadm trigger business. We've tried that already.
>
> What needs to be changed in udev etc to create a soft link? Any place
> where I should start digging and gotchas to lookout for?
Unlike disks which have /dev/disk/by-{id,path,uuid}/* symlinks back to
/dev/sd*, which udev manages, network devices have no such on-disk
representation for udev to manage. My proposal to create such on-disk
mappings was shot down, as was my suggestion to create (multiple)
network device symlinks/references/aliases inside the kernel.
The approach I'm pursuing now is called libnetdevname[1], which can
take as input a device name from various name spaces (BIOS-provided
from SMBIOS or in future, ACPI, or perhaps a userspace mapping similar
to /etc/mactab in concept), and which as output is the single kernel
name for a device. Once plumbed into the tools that manipulate
network devices, it would allow you to do:
# ip addr add xx.xx.xx.xx dev Embedded_NIC_1
and have "Embedded_NIC_1" map to the appropriate "ethN", for use by
the calls into the kernel.
In this case, Embedded_NIC_1 would come from BIOS; conceivably other
namespace sources could hook into this same framework then.
FWIW, I have a talk at LinuxCon Boston coming up on this, and have a
proposal in for Linux Plumbers Conference as well.
Thanks,
Matt
[1] http://linux.dell.com/wiki/index.php/Oss/libnetdevname
--
Matt Domsch
Technology Strategist
Dell | Office of the CTO
next prev parent reply other threads:[~2010-07-09 17:15 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-07 22:25 Michael Di Domenico
2010-07-07 22:39 ` Brian Kroth
2010-07-07 23:15 ` Steve Fink
2010-07-08 1:21 ` Matt Domsch
2010-07-08 20:36 ` Loke, Chetan
2010-07-08 20:47 ` Andrew Fong
2010-07-08 21:27 ` Kay Sievers
2010-07-08 22:07 ` Loke, Chetan
2010-07-08 21:24 ` Charlie Brady
2010-07-09 7:18 ` Florian Weimer
2010-07-09 7:57 ` Kay Sievers
2010-07-09 8:13 ` Florian Weimer
2010-07-09 16:27 ` Loke, Chetan
2010-07-09 17:10 ` Steve Fink
2010-07-09 18:23 ` Loke, Chetan
2010-07-09 21:26 ` Steve Fink
2010-07-12 16:56 ` Loke, Chetan
2010-07-12 18:27 ` Steve Fink
2010-07-09 17:15 ` Matt Domsch [this message]
2010-07-09 18:55 ` Loke, Chetan
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=20100709171529.GA27241@auslistsprd01.us.dell.com \
--to=matt_domsch@dell.com \
--cc=Chetan.Loke@netscout.com \
--cc=fweimer@bfk.de \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=mdidomenico4@gmail.com \
/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
Powered by JetHome