[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1364311860.1716.31.camel@edumazet-glaptop>
Date: Tue, 26 Mar 2013 08:31:00 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Benoit Lourdelet <blourdel@...iper.net>
Cc: Stephen Hemminger <stephen@...workplumber.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Serge Hallyn <serge.hallyn@...ntu.com>
Subject: Re: [RFC][PATCH] iproute: Faster ip link add, set and delete
On Tue, 2013-03-26 at 11:51 +0000, Benoit Lourdelet wrote:
> The script to delete:
> for d in /sys/class/net/veth*; do
> ip link del `basename $d` 2>/dev/null || true
> Done
>
> There is a very good improvement in deletion.
I can do better ;)
If you are really doing this kind of things, you could use :
rmmod veth
Note that "ip" command supports a batch mode
ip -batch filename
In this case, the caching is done only once.
Eric, Stephen, one possibility would be to use the cache only in batch
mode.
Anyway caching is wrong because several users can use ip command at the
same time.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists