From: Alexander Kozyrev Date: Thu, 29 Oct 2020 17:58:22 +0000 (+0000) Subject: net/mlx5: fix CQE decompression for Arm and PowerPC X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=71094ae3ceeab84a5486996d1dfb2448f210ce58;p=dpdk.git net/mlx5: fix CQE decompression for Arm and PowerPC The recent Rx code refactoring moved the incrementing of the CQ completion index out of the rxq_cq_decompress_v() function to the rxq_burst_v() function. The advancing of CQ completion index was removed in SSE version only causing Neon and Altivec Rx bursts to stall. Remove the incrementation of CQ completion index for all the architectures in order to fix the stall. Fixes: 1ded26239aa0 ("net/mlx5: refactor vectorized Rx") Signed-off-by: Alexander Kozyrev Acked-by: Viacheslav Ovsiienko --- diff --git a/drivers/net/mlx5/mlx5_rxtx_vec_altivec.h b/drivers/net/mlx5/mlx5_rxtx_vec_altivec.h index f15c4afaf7..48b677e40d 100644 --- a/drivers/net/mlx5/mlx5_rxtx_vec_altivec.h +++ b/drivers/net/mlx5/mlx5_rxtx_vec_altivec.h @@ -506,7 +506,6 @@ rxq_cq_decompress_v(struct mlx5_rxq_data *rxq, volatile struct mlx5_cqe *cq, rxq->stats.ibytes += rcvd_byte; #endif - rxq->cq_ci += mcqe_n; return mcqe_n; } diff --git a/drivers/net/mlx5/mlx5_rxtx_vec_neon.h b/drivers/net/mlx5/mlx5_rxtx_vec_neon.h index 807e5280d8..4c067d8801 100644 --- a/drivers/net/mlx5/mlx5_rxtx_vec_neon.h +++ b/drivers/net/mlx5/mlx5_rxtx_vec_neon.h @@ -369,7 +369,6 @@ rxq_cq_decompress_v(struct mlx5_rxq_data *rxq, volatile struct mlx5_cqe *cq, rxq->stats.ipackets += mcqe_n; rxq->stats.ibytes += rcvd_byte; #endif - rxq->cq_ci += mcqe_n; return mcqe_n; }