mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Loke, Chetan" <Chetan.Loke@netscout.com>
To: "Steve Fink" <sphink@gmail.com>
Cc: "Florian Weimer" <fweimer@bfk.de>, <linux-net@vger.kernel.org>,
	"Matt Domsch" <Matt_Domsch@dell.com>,
	"Michael Di Domenico" <mdidomenico4@gmail.com>,
	<linux-kernel@vger.kernel.org>, <kay.sievers@vrfy.org>
Subject: RE: nic enumeration
Date: Mon, 12 Jul 2010 12:56:31 -0400	[thread overview]
Message-ID: <D3F292ADF945FB49B35E96C94C2061B90C3CFABA@nsmail.netscout.com> (raw)
In-Reply-To: <AANLkTilYZTwekbqKCXEaT6Yo3UTDl9tRHJlRdwpSg_IH@mail.gmail.com>

> -----Original Message-----
> From: Steve Fink [mailto:sphink@gmail.com]
> Sent: July 09, 2010 5:27 PM
> To: Loke, Chetan
> Cc: Florian Weimer; linux-net@vger.kernel.org; Matt Domsch; Michael Di
> Domenico; linux-kernel@vger.kernel.org; kay.sievers@vrfy.org
> Subject: Re: nic enumeration
> 
> 
> Your problem is different from the one that began this thread. Can you
> describe your situation more fully?
> 

Sorry guys, I thought I mentioned my requirement. And I apologize for
pulling in my discussion in this thread.

Requirement:
I've a box with 'M' NICs. During install time, all the h/w config is
static, customers will configure the box. They would say use 'ethX' for
task-foo and 'ethY' for task-bar.
All this while our-apps where happy because we would never modify the
h/w config(single NIC vendor). So the configuration was pretty static.
However, we now let customers add/replace NICs from different vendors(so
different drivers will get loaded).The older 'ethX' might now map to a
newly-inserted-NICs-mac. So I would now like an 'ethX' agnostic way of
addressing the NICs and BTW we can't reboot the box[look below why].

Possible solution:
S1)I thought symlink[or a reference etc] would solve this problem. 
S2)I have another idea in mind(using mac-ids,enhance dev_ioctl[introduce
SIOCGHWADDR_TO_IFNAMEINDEXMAP] and traverse
for_each_netdev::for_each_dev_addrs) but I will wait for everyone's
suggestions because there might be an easy way.

Why can't I reboot?
Imagine the above configuration within a VM. Some customers have as many
as 75+ VMs deployed and we cannot afford to reboot the VMs after adding
a new (virtual)vNIC. The newly added vNIC is seen by the guest as if it
were a hot-insertion.


> I only partially understand your problem, but I am still wondering if
> my bridge idea would work for you. (Preferably combined with udev
> rules or whatever so the bridges are unnecessary after the next
> reboot.)

Why a bridge? Just to get around naming issues?

Regards
Chetan Loke

  reply	other threads:[~2010-07-12 16:56 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 [this message]
2010-07-12 18:27                 ` Steve Fink
2010-07-09 17:15         ` Matt Domsch
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=D3F292ADF945FB49B35E96C94C2061B90C3CFABA@nsmail.netscout.com \
    --to=chetan.loke@netscout.com \
    --cc=Matt_Domsch@dell.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 \
    --cc=sphink@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

all inboxes | Powered by JetHome®