net/mlx5: fix creation of compressed Rx completion queue
[dpdk.git] / drivers / net / mlx5 / mlx5_rxq.c
index 632d451..ad741ef 100644 (file)
@@ -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");
        }