Skip to content

Commit 20cbf8c

Browse files
Binary-EaterSaeed Mahameed
authored andcommitted
net/mlx5: Use mlx5 device constant for selecting CQ period mode for ASO
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: cdd04f4 ("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>
1 parent 5b2a252 commit 20cbf8c

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/lib

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/lib/aso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static int create_aso_cq(struct mlx5_aso_cq *cq, void *cqc_data)
9898
mlx5_fill_page_frag_array(&cq->wq_ctrl.buf,
9999
(__be64 *)MLX5_ADDR_OF(create_cq_in, in, pas));
100100

101-
MLX5_SET(cqc, cqc, cq_period_mode, DIM_CQ_PERIOD_MODE_START_FROM_EQE);
101+
MLX5_SET(cqc, cqc, cq_period_mode, MLX5_CQ_PERIOD_MODE_START_FROM_EQE);
102102
MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn);
103103
MLX5_SET(cqc, cqc, uar_page, mdev->priv.uar->index);
104104
MLX5_SET(cqc, cqc, log_page_size, cq->wq_ctrl.buf.page_shift -

0 commit comments

Comments
 (0)