• E
    net: remove default_device_exit() · ee403248
    Eric Dumazet 提交于
    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: NEric Dumazet <edumazet@google.com>
    Reviewed-by: NDavid Ahern <dsahern@kernel.org>
    Signed-off-by: NJakub Kicinski <kuba@kernel.org>
    ee403248
dev.c 275.6 KB