net/iavf: fix crash in AVX512
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Wed, 14 Apr 2021 07:25:24 +0000 (15:25 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 14 Apr 2021 12:29:14 +0000 (14:29 +0200)
commit4eb3dcce7c5dacd57cfb9b6cfb3c1b52846ee9de
tree783bc23b3c8e37f11fa15ecfc251793782dad5f7
parent7d96f5717a693546933aff4f6623c94976150c5b
net/iavf: fix crash in AVX512

Fix segment fault when failing to get the memory from the pool.
If there's no memory in the default cache, fall back to the
previous process.

The previous AVX2 rearm function is changed to add some AVX512
instructions and changed to a callee of the AVX2 and AVX512
rearm functions.

Fixes: 31737f2b66fb ("net/iavf: enable AVX512 for legacy Rx")
Cc: stable@dpdk.org
Reported-by: David Coyle <david.coyle@intel.com>
Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Tested-by: David Coyle <david.coyle@intel.com>
drivers/net/iavf/iavf_rxtx_vec_avx2.c
drivers/net/iavf/iavf_rxtx_vec_avx512.c
drivers/net/iavf/iavf_rxtx_vec_common.h