From: NĂ©lio Laranjeiro Date: Thu, 17 Nov 2016 09:49:56 +0000 (+0100) Subject: net/mlx5: do not invalidate title CQE X-Git-Tag: spdx-start~5121 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b5750af6cb183b800f5362276fae3094031f10d2;p=dpdk.git net/mlx5: do not invalidate title CQE We can leave the title completion queue entry untouched since its contents are not modified. Reported-by: Liming Sun Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 2c5ca74c21..63146ac335 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -1160,7 +1160,7 @@ mlx5_rx_poll_len(struct rxq *rxq, volatile struct mlx5_cqe *cqe, zip->na += 8; } if (unlikely(rxq->zip.ai == rxq->zip.cqe_cnt)) { - uint16_t idx = rxq->cq_ci; + uint16_t idx = rxq->cq_ci + 1; uint16_t end = zip->cq_ci; while (idx != end) {