summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2018-06-08 19:26:50 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2019-08-10 00:54:08 +0300
commite4f9abbd38e468c73710ad3678005ad05f79c818 (patch)
tree0cf24788744eda89fb9508b6f32e46337506d9cd /tools/perf/scripts/python/bin/export-to-postgresql-report
parentca497fb6aa9fbd3b0a87fd0a71e9e1df2600ac30 (diff)
downloadlinux-e4f9abbd38e468c73710ad3678005ad05f79c818.tar.xz
net/mlx5e: Extend hairpin entry with reference counter
List of flows attached to hairpin entry is used as implicit reference counter (hairpin entry is deallocated when list becomes free) and as a mechanism to obtain hairpin entry that flow is attached to (through list head). This is not safe when concurrent modification of list of flows attached to hairpin entry is possible. Proper atomic reference counter is required to support concurrent access. As a preparation for extending hairpin with reference counting, extract code that deletes hairpin entry into standalone function. In order to remove this dependency on external locking, extend hairpin entry with reference counter to manage its lifetime and extend flow structure with direct pointer to hairpin entry that flow is attached to. Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Reviewed-by: Jianbo Liu <jianbol@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions