aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2025-04-15 15:11:37 +0300
committerPaolo Abeni <pabeni@redhat.com>2025-04-22 11:11:15 +0200
commita6d04f8937e3a721c3a3578fc18b28cb59b15f42 (patch)
tree583f1f99ca75fb05a2603683b1f3238a5b3c063b /tools/perf/scripts/python/export-to-postgresql.py
parentvxlan: Use linked list to traverse FDB entries (diff)
downloadwireguard-linux-a6d04f8937e3a721c3a3578fc18b28cb59b15f42.tar.xz
wireguard-linux-a6d04f8937e3a721c3a3578fc18b28cb59b15f42.zip
vxlan: Convert FDB garbage collection to RCU
Instead of holding the FDB hash lock when traversing the FDB linked list during garbage collection, use RCU and only acquire the lock for entries that need to be removed (aged out). Avoid races by using hlist_unhashed() to check that the entry has not been removed from the list by another thread. Note that vxlan_fdb_destroy() uses hlist_del_init_rcu() to remove an entry from the list which should cause list_unhashed() to return true. Reviewed-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20250415121143.345227-10-idosch@nvidia.com Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions