summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorBodong Wang <bodong@mellanox.com>2019-09-14 00:24:19 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2020-03-14 02:26:01 +0300
commit14c844cbf3503076de6e2e48d575216f1600b19f (patch)
tree74888c193fc458bf5309f2bdb15abd1b9f7fc5e5 /tools/perf/scripts/python/event_analyzing_sample.py
parent86f9453c5fca845ca592777ef8960ff827fc7cc9 (diff)
downloadlinux-14c844cbf3503076de6e2e48d575216f1600b19f.tar.xz
net/mlx5: E-Switch, Hold mutex when querying drop counter in legacy mode
Consider scenario below, CPU 1 is at risk to query already destroyed drop counters. Need to apply the same state mutex when disabling vport. +-------------------------------+-------------------------------------+ | CPU 0 | CPU 1 | +-------------------------------+-------------------------------------+ | mlx5_device_disable_sriov | mlx5e_get_vf_stats | | mlx5_eswitch_disable | mlx5_eswitch_get_vport_stats | | esw_disable_vport | mlx5_eswitch_query_vport_drop_stats | | mlx5_fc_destroy(drop_counter) | mlx5_fc_query(drop_counter) | +-------------------------------+-------------------------------------+ Fixes: b8a0dbe3a90b ("net/mlx5e: E-switch, Add steering drop counters") Signed-off-by: Bodong Wang <bodong@mellanox.com> Reviewed-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions