net/mlx5: Use mlx5 device constant for selecting CQ period mode for ASO
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Tue, 28 Nov 2023 22:01:54 +0000 (14:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:19:03 +0000 (16:19 -0800)
commitee8ad3d2f34eb5a4f734f4f549eeabd704e20cef
tree9194e3b11427fbe5da707199261d85d91031a8ad
parent5deca39812432681afe2e4cab9882f1ec3eb7cd5
net/mlx5: Use mlx5 device constant for selecting CQ period mode for ASO

[ Upstream commit 20cbf8cbb827094197f3b17db60d71449415db1e ]

mlx5 devices have specific constants for choosing the CQ period mode. These
constants do not have to match the constants used by the kernel software
API for DIM period mode selection.

Fixes: cdd04f4d4d71 ("net/mlx5: Add support to create SQ and CQ for ASO")
Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Reviewed-by: Jianbo Liu <jianbol@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/lib/aso.c