net/iavf: fix multi-process shared data
authorDapeng Yu <dapengx.yu@intel.com>
Mon, 11 Oct 2021 02:01:31 +0000 (10:01 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 11 Oct 2021 02:59:09 +0000 (04:59 +0200)
commit435d523112ccef6cb58edba3062ea05a2f6544fc
treefa7711fd39c6c771dbf4cb34c7421e38f02ad140
parentdbabb7b15754eea2f6ff7761ce3019de1792357b
net/iavf: fix multi-process shared data

When the iavf_adapter instance is not initialized completely in the
primary process, the secondary process accesses its "rte_eth_dev"
member, it causes secondary process crash.

This patch replaces eth_dev with eth_dev_data in iavf_adapter.

Fixes: f978c1c9b3b5 ("net/iavf: add RSS hash parsing in AVX path")
Fixes: 9c9aa0040344 ("net/iavf: add offload path for Rx AVX512 flex descriptor")
Fixes: 63660ea3ee0b ("net/iavf: add RSS hash parsing in SSE 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/iavf/iavf.h
drivers/net/iavf/iavf_ethdev.c
drivers/net/iavf/iavf_fdir.c
drivers/net/iavf/iavf_hash.c
drivers/net/iavf/iavf_rxtx.h
drivers/net/iavf/iavf_rxtx_vec_avx2.c
drivers/net/iavf/iavf_rxtx_vec_avx512.c
drivers/net/iavf/iavf_rxtx_vec_sse.c
drivers/net/iavf/iavf_vchnl.c