aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorDragos Tatulea <[email protected]>2023-04-13 15:48:30 +0300
committerSaeed Mahameed <[email protected]>2023-05-24 20:44:18 -0700
commit1db1f21caebbb1b6e9b1e7657df613616be3fb49 (patch)
treeb77224fd5270219f538fe5341d16259b61a711c1 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent341a80de2468f481b1f771683709b5649cbfe513 (diff)
net/mlx5e: Use query_special_contexts cmd only once per mdev
Don't query the firmware so many times (num rqs * num wqes * wqe frags) because it slows down linearly the interface creation time when the product is larger. Do it only once per mdev and store the result in mlx5e_param. Due to helper function being called from different files, move it to an appropriate location. Rename the function with a proper prefix and add a small cleanup. This fix applies only for legacy rq. Fixes: 1b1e4868836a ("net/mlx5e: Use query_special_contexts for mkeys") Signed-off-by: Dragos Tatulea <[email protected]> Reviewed-by: Or Har-Toov <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions