public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Denys Fedoryshchenko <denys@visp.net.lb>
To: Stephen Hemminger <shemminger@vyatta.com>
Cc: <netdev@vger.kernel.org>
Subject: Re: [RFC] iproute2, ifindex option
Date: Wed, 20 Jul 2011 19:12:57 +0300	[thread overview]
Message-ID: <c64661bcbe0fc5bcedf2bb0ea4a44dde@visp.net.lb> (raw)
In-Reply-To: <20110720085842.03dd411c@nehalam.ftrdhcpuser.net>

 On Wed, 20 Jul 2011 08:58:42 -0700, Stephen Hemminger wrote:
> On Wed, 20 Jul 2011 18:54:44 +0300
> Denys Fedoryshchenko <denys@visp.net.lb> wrote:
>
>>  On Wed, 20 Jul 2011 08:37:53 -0700, Stephen Hemminger wrote:
>> >
>> > If caching is a problem, I would rather just get rid of the cache
>> > altogether.
>> > There are a number of other places where it is a problem as well.
>>  It is good, but it must be controlled. Also people put some efforts 
>> to
>>  improve it...
>>  Before i did custom patch to "trash" the cache, but after cache
>>  improved i should rewrite it. If required, i can make cache 
>> behavior
>>  changeable (on,off,flush ?).
>>  Will it help for you too?
>>
>>  I think ifindex is good anyway, because sometimes it is better to 
>> refer
>>  to specific ppp interface by ifindex.
>
> The problem is that it is not possible to make a "safe" cache since
> it is possible for network device names to be changed at any time.

 Maybe then by removing cache, but using ifindex option, and maybe even 
 adding in output additional ifindex field (for show commands), we can 
 leave user to implement his own caching?

 Another thing, on tc -s -d qdisc show, if there is many interfaces, 
 without cache on each line ll_index_to_name() it will be CPU and netlink 
 hog to retrieve all interface names again and again, especially if there 
 is too many intefaces.

 ---
 System administrator
 Denys Fedoryshchenko
 Virtual ISP S.A.L.

      reply	other threads:[~2011-07-20 16:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18  8:38 [RFC] iproute2, ifindex option Denys Fedoryshchenko
2011-07-20 15:37 ` Stephen Hemminger
2011-07-20 15:54   ` Denys Fedoryshchenko
2011-07-20 15:58     ` Stephen Hemminger
2011-07-20 16:12       ` Denys Fedoryshchenko [this message]

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=c64661bcbe0fc5bcedf2bb0ea4a44dde@visp.net.lb \
    --to=denys@visp.net.lb \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@vyatta.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