net/i40e: fix data path selection in secondary process
authorDapeng Yu <dapengx.yu@intel.com>
Wed, 9 Jun 2021 07:05:08 +0000 (15:05 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Sun, 4 Jul 2021 14:57:10 +0000 (16:57 +0200)
commitc30751afc36053a095db844b825fab859474a60a
tree3e5527c0f32d3d49c907c61f49bea4c40411f3ad
parent1e611cb814aaccf3e30821f61af003912d640738
net/i40e: 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 i40e_adapter.

Fixes: 6ada10deac66 ("net/i40e: remove devarg use-latest-supported-vec")
Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.h
drivers/net/i40e/i40e_rxtx.c