Re: [RFC] iproute2, ifindex option

Stephen Hemminger
2011-07-20T15:58:40Z

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.