diff options
author | Dragos Tatulea <[email protected]> | 2023-04-13 15:48:30 +0300 |
---|---|---|
committer | Saeed Mahameed <[email protected]> | 2023-05-24 20:44:18 -0700 |
commit | 1db1f21caebbb1b6e9b1e7657df613616be3fb49 (patch) | |
tree | b77224fd5270219f538fe5341d16259b61a711c1 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 341a80de2468f481b1f771683709b5649cbfe513 (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