commit | 806b67850787bae3df1bc2e5a30e8c658c579d80 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Tue Feb 06 14:43:11 2024 +0000 |
committer | Jakub Kicinski <kuba@kernel.org> | Wed Feb 07 18:55:12 2024 -0800 |
tree | f23ee5b07d696ed545ecde6eb868881d387dcfb8 | |
parent | 9b5b36374ed6953f3efcc82e7cb4c353b9869faf [diff] |
bridge: use exit_batch_rtnl() method exit_batch_rtnl() is called while RTNL is held, and devices to be unregistered can be queued in the dev_kill_list. This saves one rtnl_lock()/rtnl_unlock() pair per netns and one unregister_netdevice_many() call. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Antoine Tenart <atenart@kernel.org> Link: https://lore.kernel.org/r/20240206144313.2050392-16-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>