[2/2] net/mlx5: fix interrupt on compressed completion queue
Checks
Commit Message
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@mellanox.com>
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
---
drivers/net/mlx5/mlx5_rxtx.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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. */
};