[dpdk-dev] [PATCH 2/2] net/mlx5: fix interrupt on compressed completion queue

Xueming Li xuemingl at mellanox.com
Wed Oct 24 10:40:08 CEST 2018


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 <shahafs at mellanox.com>

Signed-off-by: Xueming Li <xuemingl at 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



More information about the dev mailing list