net/ice: fix crash in AVX512
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Wed, 14 Apr 2021 07:25:25 +0000 (15:25 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 14 Apr 2021 12:29:30 +0000 (14:29 +0200)
commit20daa1c978b7d34b447453b3f25483c700745456
tree1adc1d6b55ba880d529ca4df1f5f91b949e0eb47
parent4eb3dcce7c5dacd57cfb9b6cfb3c1b52846ee9de
net/ice: 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: 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")
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/ice/ice_rxtx_vec_avx2.c
drivers/net/ice/ice_rxtx_vec_avx512.c
drivers/net/ice/ice_rxtx_vec_common.h
drivers/net/ice/meson.build