Re: [dpdk-dev] [PATCH] net/iavf: fix multi-process shared data

2021-09-28 Thread Zhang, Qi Z
> -Original Message- > From: dev On Behalf Of dapengx...@intel.com > Sent: Tuesday, September 28, 2021 11:38 AM > To: Richardson, Bruce ; Ananyev, Konstantin > ; Wu, Jingjing ; Xing, > Beilei > Cc: dev@dpdk.org; Yu, DapengX ; sta...@dpdk.org > Subject: [dpdk-de

[dpdk-dev] [PATCH] net/iavf: fix multi-process shared data

2021-09-27 Thread dapengx . yu
From: Dapeng Yu When the iavf_adapter instance is not initialized completedly in the primary process, the secondary process accesses its "rte_eth_dev" member, it causes secondary process crash. This patch replaces adapter->eth_dev with rte_eth_devices[port_id] in the data paths where rte_eth_dev