diff options
author | Eric Dumazet <edumazet@google.com> | 2024-02-06 17:42:59 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-02-08 05:55:11 +0300 |
commit | a7ec2512ad7b23340059f59f3fd710cab056791a (patch) | |
tree | e40d9ddaba613228fb6cdc071a67d068b67d17db /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | fd4f101edbd9f99567ab2adb1f2169579ede7c13 (diff) | |
download | linux-a7ec2512ad7b23340059f59f3fd710cab056791a.tar.xz |
nexthop: convert nexthop_net_exit_batch to exit_batch_rtnl method
exit_batch_rtnl() is called while RTNL is held.
This saves one rtnl_lock()/rtnl_unlock() pair.
We also need to create nexthop_net_exit()
to make sure net->nexthop.devhash is not freed too soon,
otherwise we will not be able to unregister netdev
from exit_batch_rtnl() methods.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Antoine Tenart <atenart@kernel.org>
Link: https://lore.kernel.org/r/20240206144313.2050392-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions