net/ice: fix data path selection in secondary process
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 24 May 2021 09:07:59 +0000 (17:07 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 10 Jun 2021 10:04:16 +0000 (12:04 +0200)
commitf8b3326f3116afb357beac730577fec6ffbf2d83
treefb6b4ee33c05a2da3548320e3ecfb621bbc48dba
parentc2021e1077b74937f150053c449af3344539c96f
net/ice: fix data path selection in secondary process

The flag use_avx2 and use_avx512 are defined as local variables, they
will not be aware by the secondary process, then wrong data path is
selected. Fix the issue by moving them into struct ice_adapter.

Fixes: ae60d3c9b227 ("net/ice: support Rx AVX2 vector")
Fixes: 2d5f6953d56d ("net/ice: support vector AVX2 in Tx")
Fixes: 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")
Cc: stable@dpdk.org
Reported-by: Yixue Wang <yixue.wang@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Tested-by: Yixue Wang <yixue.wang@intel.com>
drivers/net/ice/ice_ethdev.h
drivers/net/ice/ice_rxtx.c