Re: [PATCH vhost v2 09/10] vdpa/mlx5: Small improvement for change_num_qps()

2024-08-28 Thread Eugenio Perez Martin
On Fri, Aug 16, 2024 at 11:03 AM Dragos Tatulea wrote: > > 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 T

[PATCH vhost v2 09/10] vdpa/mlx5: Small improvement for change_num_qps()

2024-08-16 Thread Dragos Tatulea
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 Reviewed-by: Tariq Toukan --- drivers/vdpa/mlx5/net/mlx5_vn