net: remove default_device_exit()
authorEric Dumazet <edumazet@google.com>
Tue, 8 Feb 2022 04:50:38 +0000 (20:50 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Feb 2022 04:41:35 +0000 (20:41 -0800)
commitee403248fa6db5ca23031fc51b06284d6855cd02
treeb9da4e602b344fa938491f0d4c45e1c6c8cc1d85
parent16a41634accacb2b3eee3580a0aef2da0f15aabd
net: remove default_device_exit()

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: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c