From: Eric Dumazet Date: Sun, 8 May 2011 23:17:57 +0000 (+0000) Subject: net: use batched device unregister in veth and macvlan X-Git-Tag: v3.0-rc1~377^2~129 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=226bd3411471af42f7edbdfaf73f2d54ebb62a66;p=pandora-kernel.git net: use batched device unregister in veth and macvlan 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 Signed-off-by: Eric Dumazet Cc: Michał Mirosław Cc: Jesse Gross Cc: Paul E. McKenney Cc: Ben Greear Signed-off-by: David S. Miller --- Reading git-diff-tree failed