diff options
author | Maher Sanalla <msanalla@nvidia.com> | 2023-06-22 18:52:44 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-08-07 10:53:51 -0700 |
commit | 674dd4e2e04e7a62bfacf28129e0808f33395bdf (patch) | |
tree | 0d1fbe7f031697083cbc803c1289c2776dec526e /drivers/net/ethernet/mellanox/mlx5/core/en.h | |
parent | f3147015fa0769cf1dcbfdb9040ad380cc4daeb5 (diff) | |
download | linux-stable-674dd4e2e04e7a62bfacf28129e0808f33395bdf.tar.gz linux-stable-674dd4e2e04e7a62bfacf28129e0808f33395bdf.tar.bz2 linux-stable-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/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index 0f8f70b91485..c1deb04ba7e8 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -193,7 +193,7 @@ static inline int mlx5e_get_max_num_channels(struct mlx5_core_dev *mdev) { return is_kdump_kernel() ? MLX5E_MIN_NUM_CHANNELS : - min_t(int, mlx5_comp_vectors_count(mdev), MLX5E_MAX_NUM_CHANNELS); + min_t(int, mlx5_comp_vectors_max(mdev), MLX5E_MAX_NUM_CHANNELS); } /* The maximum WQE size can be retrieved by max_wqe_sz_sq in |