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

Zhang, Qi Z qi.z.zhang at intel.com
Sat Oct 9 11:40:24 CEST 2021



> -----Original Message-----
> From: Yu, DapengX <dapengx.yu at intel.com>
> Sent: Saturday, October 9, 2021 11:25 AM
> To: Wu, Jingjing <jingjing.wu at intel.com>; Xing, Beilei <beilei.xing at intel.com>;
> Richardson, Bruce <bruce.richardson at intel.com>; Ananyev, Konstantin
> <konstantin.ananyev at intel.com>
> Cc: dev at dpdk.org; Zhang, Qi Z <qi.z.zhang at intel.com>; Yigit, Ferruh
> <ferruh.yigit at intel.com>; Yu, DapengX <dapengx.yu at intel.com>;
> stable at 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



More information about the stable mailing list