> -----Original Message-----
> From: Yu, DapengX <dapengx...@intel.com>
> Sent: Saturday, October 9, 2021 11:25 AM
> To: Wu, Jingjing <jingjing...@intel.com>; Xing, Beilei
> <beilei.x...@intel.com>;
> Richardson, Bruce <bruce.richard...@intel.com>; Ananyev, Konstantin
> <konstantin.anan...@intel.com>
> Cc: dev@dpdk.org; Zhang, Qi Z <qi.z.zh...@intel.com>; Yigit, Ferruh
> <ferruh.yi...@intel.com>; Yu, DapengX <dapengx...@intel.com>;
> sta...@dpdk.org
> Subject: [PATCH v2] net/iavf: fix multi-process shared data
>
.....
>
> int
> -iavf_request_queues(struct iavf_adapter *adapter, uint16_t num)
> +iavf_request_queues(struct rte_eth_dev *dev, struct iavf_adapter *adapter,
> + uint16_t num)
No need adapter as parameter here.
Below help to covert from eth_dev to iavf_adapter
struct iavf_adapter *adapter =
IAVF_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private);
> {
> - struct rte_eth_dev *dev = adapter->eth_dev;
> struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(adapter);
> struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(dev);
> struct virtchnl_vf_res_request vfres;
> --
> 2.27.0