diff options
author | Vlad Buslov <[email protected]> | 2020-09-20 12:43:58 +0300 |
---|---|---|
committer | Saeed Mahameed <[email protected]> | 2021-02-05 20:53:38 -0800 |
commit | 2221d954d984d07dc66a4fd0f11a8b2705816a6f (patch) | |
tree | 864ffdf788a90fcb5d4844a3346d633fe4fa3a1a /tools/perf/scripts/python/stackcollapse.py | |
parent | 777bb800c6967517772e882118b414e1c6cb7087 (diff) |
net/mlx5e: Refactor neigh update infrastructure
Following patches in series implements route update which can cause encap
entries to migrate between routing devices. Consecutively, their parent
nhe's need to be also transferable between devices instead of having neigh
device as a part of their immutable key. Move neigh device from struct
mlx5_neigh to struct mlx5e_neigh_hash_entry and check that nhe and neigh
devices are the same in workqueue neigh update handler.
Save neigh net_device that can change dynamically in dedicated nhe->dev
field. With FIB event handler that is implemented in following patches
changing nhe->dev, NETEVENT_DELAY_PROBE_TIME_UPDATE handler can
concurrently access the nhe entry when traversing neigh list under rcu read
lock. Processing stale values in that handler doesn't change the handler
logic, so just wrap all accesses to the dev pointer in {WRITE|READ}_ONCE()
helpers.
Signed-off-by: Vlad Buslov <[email protected]>
Signed-off-by: Dmytro Linkin <[email protected]>
Reviewed-by: Roi Dayan <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions