Re: [PATCH net-next-2.6] net: use batched device unregister in veth and macvlan

David Miller
2011-05-09T18:42:33Z

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Mon, 09 May 2011 11:17:57 +0200

> veth devices dont use the batched device unregisters yet.
>
> Since veth are a pair of devices, it makes sense to use a batch of two
> unregisters, this roughly divides dismantle time by two.
>
> Fix this by changing dellink() callers to always provide a non NULL
> head. (Idea from Michał Mirosław)
>
> This patch also handles macvlan case : We now dismantle all macvlans on
> top of a lower dev at once.
>
> Reported-by: Alex Bligh <alex@alex.org.uk>
> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>

Applied.