OSDN Git Service

Merge tag 'vfio-v6.6-rc1' of https://github.com/awilliam/linux-vfio
[tomoyo/tomoyo-test1.git] / drivers / vfio / pci / mlx5 / cmd.c
index 7f6c519..33574b0 100644 (file)
@@ -979,8 +979,8 @@ static int mlx5vf_create_cq(struct mlx5_core_dev *mdev,
                goto err_buff;
        }
 
-       vector = raw_smp_processor_id() % mlx5_comp_vectors_count(mdev);
-       err = mlx5_vector2eqn(mdev, vector, &eqn);
+       vector = raw_smp_processor_id() % mlx5_comp_vectors_max(mdev);
+       err = mlx5_comp_eqn_get(mdev, vector, &eqn);
        if (err)
                goto err_vec;