diff options
author | 2025-04-15 15:11:37 +0300 | |
---|---|---|
committer | 2025-04-22 11:11:15 +0200 | |
commit | a6d04f8937e3a721c3a3578fc18b28cb59b15f42 (patch) | |
tree | 583f1f99ca75fb05a2603683b1f3238a5b3c063b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | vxlan: Use linked list to traverse FDB entries (diff) | |
download | wireguard-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