From: Yongseok Koh Date: Fri, 13 Oct 2017 20:00:19 +0000 (-0700) Subject: net/mlx5: fix creation of compressed Rx completion queue X-Git-Tag: spdx-start~1308 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8fa9c312e1b22b2a21a0d4b20a79dbad0af3b79b;p=dpdk.git net/mlx5: fix creation of compressed Rx completion queue The size of Rx completion queue should be doubled if compression is enabled in case of non-vectorized Rx. Fixes: 523f5a742102 ("net/mlx5: fix configuration of Rx CQE compression") Cc: stable@dpdk.org Signed-off-by: Yongseok Koh Acked-by: Nelio Laranjeiro --- diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index 632d451036..ad741ef448 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -617,7 +617,7 @@ mlx5_priv_rxq_ibv_new(struct priv *priv, uint16_t idx) * make cq_ci and rq_ci aligned. */ if (rxq_check_vec_support(rxq_data) < 0) - cqe_n *= 2; + attr.cq.ibv.cqe *= 2; } else if (priv->cqe_comp && rxq_data->hw_timestamp) { DEBUG("Rx CQE compression is disabled for HW timestamp"); }