From: Eric Dumazet <redacted>
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 <redacted>
Signed-off-by: Eric Dumazet <redacted>
Applied.