numam-dpdk/drivers/net/i40e
Ruifeng Wang 778602fe57 net/i40e: fix risk in descriptor read in NEON Rx
Rx descriptor is 16B/32B in size. If the DD bit is set, it indicates
that the rest of the descriptor words have valid values. Hence, the
word containing DD bit must be read first before reading the rest of
the descriptor words.

In NEON vector PMD, vector load loads two contiguous 8B of
descriptor data into vector register. Given vector load ensures no
16B atomicity, read of the word that includes DD field could be
reordered after read of other words. In this case, some words could
contain invalid data.

Read barrier is added after read of qword1 that includes DD field.
And qword0 is reloaded to update vector register. This ensures
that the fetched data is correct.

Testpmd single core test on N1SDP/ThunderX2 showed no performance drop.

Fixes: ae0eb310f2 ("net/i40e: implement vector PMD for ARM")
Cc: stable@dpdk.org

Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
2021-10-19 13:13:55 +02:00
..
base net/i40e/base: update version 2021-10-09 07:37:05 +02:00
i40e_ethdev.c ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
i40e_ethdev.h net/i40e: fix Rx packet statistics 2021-10-08 08:18:31 +02:00
i40e_fdir.c net/i40e: fix memzone leak on queue re-configure 2021-10-07 13:38:16 +02:00
i40e_flow.c eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
i40e_hash.c net/i40e: fix IPv6 fragment RSS offload type in flow 2021-10-19 13:06:42 +02:00
i40e_hash.h net/i40e: refactor RSS flow 2021-01-08 19:20:09 +01:00
i40e_logs.h net/i40e: refine debug build option 2021-04-01 16:10:20 +02:00
i40e_pf.c net/i40e: fix VF RSS configuration 2021-05-12 14:21:27 +02:00
i40e_pf.h net/i40e: support AVF basic interface 2018-01-16 18:47:49 +01:00
i40e_regs.h drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
i40e_rxtx_common_avx.h net/i40e: fix generic build on FreeBSD 2021-10-19 13:01:56 +02:00
i40e_rxtx_vec_altivec.c drivers/net: fix vector Rx comments 2021-08-10 05:01:57 +02:00
i40e_rxtx_vec_avx2.c net/i40e: fix generic build on FreeBSD 2021-10-19 13:01:56 +02:00
i40e_rxtx_vec_avx512.c net/i40e: fix generic build on FreeBSD 2021-10-19 13:01:56 +02:00
i40e_rxtx_vec_common.h net/i40e: fix generic build on FreeBSD 2021-10-19 13:01:56 +02:00
i40e_rxtx_vec_neon.c net/i40e: fix risk in descriptor read in NEON Rx 2021-10-19 13:13:55 +02:00
i40e_rxtx_vec_sse.c drivers/net: fix vector Rx comments 2021-08-10 05:01:57 +02:00
i40e_rxtx.c ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
i40e_rxtx.h ethdev: change input parameters for Rx queue count 2021-10-13 22:14:58 +02:00
i40e_tm.c drivers/net: build i40e and mlx5 on Windows 2021-01-14 23:51:24 +01:00
i40e_vf_representor.c drivers/net: remove queue xstats auto-fill flag 2021-10-15 00:17:44 +02:00
meson.build net/i40e: remove i40evf 2021-10-05 12:31:37 +02:00
rte_pmd_i40e.c net/i40e: remove i40evf 2021-10-05 12:31:37 +02:00
rte_pmd_i40e.h net/i40e: add C++ include guard 2020-11-13 19:43:26 +01:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00