• Eric Dumazet's avatar
    net: remove default_device_exit() · ee403248
    Eric Dumazet authored
    For some reason default_device_ops kept two exit method:
    
    1) default_device_exit() is called for each netns being dismantled in
    a cleanup_net() round. This acquires rtnl for each invocation.
    
    2) default_device_exit_batch() is called once with the list of all netns
    int the batch, allowing for a single rtnl invocation.
    
    Get rid of the .exit() method to handle the logic from
    default_device_exit_batch(), to decrease the number of rtnl acquisition
    to one.
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    ee403248
dev.c 276 KB