• Eric Dumazet's avatar
    net: use batched device unregister in veth and macvlan · 226bd341
    Eric Dumazet authored
    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: default avatarAlex Bligh <alex@alex.org.uk>
    Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
    Cc: Michał Mirosław <mirqus@gmail.com>
    Cc: Jesse Gross <jesse@nicira.com>
    Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Ben Greear <greearb@candelatech.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    226bd341
rtnetlink.c 47.6 KB