summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorDragos Tatulea <dtatulea@nvidia.com>2024-08-16 11:01:58 +0200
committerMichael S. Tsirkin <mst@redhat.com>2024-09-25 13:07:43 +0200
commit74c89072f22600cc3d83fc70617b1b6c2f500013 (patch)
tree7f4ca046422b130e7bf74284d12a35ecedc7f4ce /security
parentvdpa/mlx5: Keep notifiers during suspend but ignore (diff)
downloadlinux-74c89072f22600cc3d83fc70617b1b6c2f500013.tar.xz
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 'security')
0 files changed, 0 insertions, 0 deletions