summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Hu <gavin.hu@arm.com>2019-08-13 18:43:31 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2019-09-03 17:12:37 +0200
commitf1f0f39806d97a9a4d74d47ce7fb04e9b4943e08 (patch)
treece20356687b51f1e98e7a5405dd6a09c4edbfe75
parent78b50591c8e7ae3d010e8f4005e0e95c17800941 (diff)
downloaddpdk-next-eventdev-f1f0f39806d97a9a4d74d47ce7fb04e9b4943e08.zip
dpdk-next-eventdev-f1f0f39806d97a9a4d74d47ce7fb04e9b4943e08.tar.gz
dpdk-next-eventdev-f1f0f39806d97a9a4d74d47ce7fb04e9b4943e08.tar.xz
net/i40e: remove compiler barrier from NEON Rx
As packet length extraction code was simplified,the ordering was not necessary any more.[1] 2% performance gain was measured on Marvell ThunderX2. 4.3% performance gain was measured on Ampere eMAG80 [1] http://mails.dpdk.org/archives/dev/2016-April/037529.html Fixes: ae0eb310f253 ("net/i40e: implement vector PMD for ARM") Cc: stable@dpdk.org Signed-off-by: Gavin Hu <gavin.hu@arm.com> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com> Reviewed-by: Steve Capper <steve.capper@arm.com>
-rw-r--r--drivers/net/i40e/i40e_rxtx_vec_neon.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/i40e/i40e_rxtx_vec_neon.c b/drivers/net/i40e/i40e_rxtx_vec_neon.c
index 5555e9b..864eb9a 100644
--- a/drivers/net/i40e/i40e_rxtx_vec_neon.c
+++ b/drivers/net/i40e/i40e_rxtx_vec_neon.c
@@ -307,9 +307,6 @@ _recv_raw_pkts_vec(struct i40e_rx_queue *rxq, struct rte_mbuf **rx_pkts,
rte_mbuf_prefetch_part2(rx_pkts[pos + 3]);
}
- /* avoid compiler reorder optimization */
- rte_compiler_barrier();
-
/* pkt 3,4 shift the pktlen field to be 16-bit aligned*/
uint32x4_t len3 = vshlq_u32(vreinterpretq_u32_u64(descs[3]),
len_shl);