net/mlx5: fix Tx WQE corruption caused by starvation
[dpdk.git] / drivers / net / mlx5 / mlx5_rxtx.h
index 302ca49..41a34d7 100644 (file)
@@ -249,6 +249,7 @@ struct txq {
        uint16_t elts_comp; /* Counter since last completion request. */
        uint16_t cq_ci; /* Consumer index for completion queue. */
        uint16_t wqe_ci; /* Consumer index for work queue. */
+       uint16_t wqe_pi; /* Producer index for work queue. */
        uint16_t elts_n:4; /* (*elts)[] length (in log2). */
        uint16_t cqe_n:4; /* Number of CQ elements (in log2). */
        uint16_t wqe_n:4; /* Number of of WQ elements (in log2). */