diff options
author | Dragos Tatulea <[email protected]> | 2024-08-16 12:01:58 +0300 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2024-09-25 07:07:43 -0400 |
commit | 74c89072f22600cc3d83fc70617b1b6c2f500013 (patch) | |
tree | 7f4ca046422b130e7bf74284d12a35ecedc7f4ce /tools/perf/scripts/python | |
parent | 55a7cb05b0a6c6cd6e3f482551cf93c398f1b4c9 (diff) |
vdpa/mlx5: Small improvement for change_num_qps()
change_num_qps() has a lot of multiplications by 2 to convert
the number of VQ pairs to number of VQs. This patch simplifies
the code by doing the VQP -> VQ count conversion at the beginning
in a variable.
Signed-off-by: Dragos Tatulea <[email protected]>
Reviewed-by: Tariq Toukan <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Eugenio Pérez <[email protected]>
Tested-by: Lei Yang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions