diff options
author | 2023-06-22 18:52:44 +0300 | |
---|---|---|
committer | 2023-08-07 10:53:51 -0700 | |
commit | 674dd4e2e04e7a62bfacf28129e0808f33395bdf (patch) | |
tree | 0d1fbe7f031697083cbc803c1289c2776dec526e /drivers/vfio/pci | |
parent | net/mlx5: Add IRQ vector to CPU lookup function (diff) | |
download | linux-674dd4e2e04e7a62bfacf28129e0808f33395bdf.tar.gz linux-674dd4e2e04e7a62bfacf28129e0808f33395bdf.tar.bz2 linux-674dd4e2e04e7a62bfacf28129e0808f33395bdf.zip |
net/mlx5: Rename mlx5_comp_vectors_count() to mlx5_comp_vectors_max()
To accurately represent its purpose, rename the function that retrieves
the value of maximum vectors from mlx5_comp_vectors_count() to
mlx5_comp_vectors_max().
Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/vfio/pci')
-rw-r--r-- | drivers/vfio/pci/mlx5/cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/pci/mlx5/cmd.c b/drivers/vfio/pci/mlx5/cmd.c index deed156e6165..eee20f04a469 100644 --- a/drivers/vfio/pci/mlx5/cmd.c +++ b/drivers/vfio/pci/mlx5/cmd.c @@ -1025,7 +1025,7 @@ static int mlx5vf_create_cq(struct mlx5_core_dev *mdev, goto err_buff; } - vector = raw_smp_processor_id() % mlx5_comp_vectors_count(mdev); + vector = raw_smp_processor_id() % mlx5_comp_vectors_max(mdev); err = mlx5_vector2eqn(mdev, vector, &eqn); if (err) goto err_vec; |