Rxq.cq_ci field gets changed in zipped cqe mode because the field used
to save cq_ci in zip data structure has less bits defined.

Fixes: 43e9d9794cde ("net/mlx5: support upstream rdma-core")
Cc: Shahaf Shuler <shah...@mellanox.com>

Signed-off-by: Xueming Li <xuemi...@mellanox.com>
---
 drivers/net/mlx5/mlx5_rxtx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h
index 1db468c..a13784e 100644
--- a/drivers/net/mlx5/mlx5_rxtx.h
+++ b/drivers/net/mlx5/mlx5_rxtx.h
@@ -65,7 +65,7 @@ struct rxq_zip {
        uint16_t ai; /* Array index. */
        uint16_t ca; /* Current array index. */
        uint16_t na; /* Next array index. */
-       uint16_t cq_ci; /* The next CQE. */
+       uint32_t cq_ci; /* The next CQE. */
        uint32_t cqe_cnt; /* Number of CQEs. */
 };
 
-- 
1.8.3.1

Reply via email to