diff options
author | 2024-08-16 12:01:58 +0300 | |
---|---|---|
committer | 2024-09-25 07:07:43 -0400 | |
commit | 74c89072f22600cc3d83fc70617b1b6c2f500013 (patch) | |
tree | 7f4ca046422b130e7bf74284d12a35ecedc7f4ce /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | vdpa/mlx5: Keep notifiers during suspend but ignore (diff) | |
download | wireguard-linux-74c89072f22600cc3d83fc70617b1b6c2f500013.tar.xz wireguard-linux-74c89072f22600cc3d83fc70617b1b6c2f500013.zip |
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 <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Message-Id: <20240816090159.1967650-10-dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions