]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: switch br_net_exit to batch mode
authorEric Dumazet <edumazet@google.com>
Fri, 18 Feb 2022 07:01:50 +0000 (23:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Feb 2022 16:20:12 +0000 (16:20 +0000)
commitca3f3560df8d94ab5002aac83045b39314680c33
tree30ac37c79f34b9ebb70ea06ad8f0cc5e0a4f8627
parentf05baedd0666295477c162ea1f0203a87b0c8bd8
bridge: switch br_net_exit to batch mode

cleanup_net() is competing with other rtnl users.

Instead of calling br_net_exit() for each netns,
call br_net_exit_batch() once.

This gives cleanup_net() ability to group more devices
and call unregister_netdevice_many() only once for all bridge devices.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Roopa Prabhu <roopa@nvidia.com>
Cc: Nikolay Aleksandrov <razor@blackwall.org>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br.c