From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [RFC] iproute2, ifindex option Date: Wed, 20 Jul 2011 08:58:42 -0700 Message-ID: <20110720085842.03dd411c@nehalam.ftrdhcpuser.net> References: <20110720083753.2b8de970@nehalam.ftrdhcpuser.net> <8dcbf9cb55d19da1e7f849d11d8eb216@visp.net.lb> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: To: Denys Fedoryshchenko Return-path: Received: from mail.vyatta.com ([76.74.103.46]:36414 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751538Ab1GTP6k (ORCPT ); Wed, 20 Jul 2011 11:58:40 -0400 In-Reply-To: <8dcbf9cb55d19da1e7f849d11d8eb216@visp.net.lb> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 20 Jul 2011 18:54:44 +0300 Denys Fedoryshchenko 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.