]> git.droids-corp.org - dpdk.git/commitdiff
net/mlx5: fix CQE decompression for Arm and PowerPC
authorAlexander Kozyrev <akozyrev@nvidia.com>
Thu, 29 Oct 2020 17:58:22 +0000 (17:58 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:08 +0000 (23:35 +0100)
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 <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_rxtx_vec_altivec.h
drivers/net/mlx5/mlx5_rxtx_vec_neon.h

index f15c4afaf7120a7b21c101e277b6364c0e5bfd68..48b677e40ddd4b6cad022a5841fcf4d2056189f8 100644 (file)
@@ -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;
 }
 
index 807e5280d80567f60177bf2067180ac01bb68c59..4c067d8801f851be646665b60ff4157d3e767ac3 100644 (file)
@@ -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;
 }