Re: [PATCH V8 9/9] virtio: Intel IFC VF driver for VDPA

2020-03-26 Thread Jason Wang
On 2020/3/26 下午8:17, Jason Gunthorpe wrote: On Thu, Mar 26, 2020 at 01:50:53PM +0800, Jason Wang wrote: + adapter->vdpa.dma_dev = dev; + ret = vdpa_register_device(>vdpa); + if (ret) { + IFCVF_ERR(adapter->dev, "Failed to register ifcvf to vdpa bus"); +

Re: [PATCH V8 9/9] virtio: Intel IFC VF driver for VDPA

2020-03-26 Thread Jason Gunthorpe
On Thu, Mar 26, 2020 at 01:50:53PM +0800, Jason Wang wrote: > > > + adapter->vdpa.dma_dev = dev; > > > + ret = vdpa_register_device(>vdpa); > > > + if (ret) { > > > + IFCVF_ERR(adapter->dev, "Failed to register ifcvf to vdpa bus"); > > > + goto err_msix; > > > + } > > > + > > > +

Re: [PATCH V8 9/9] virtio: Intel IFC VF driver for VDPA

2020-03-25 Thread Jason Wang
On 2020/3/25 下午8:34, Jason Gunthorpe wrote: On Wed, Mar 25, 2020 at 04:27:11PM +0800, Jason Wang wrote: +static int ifcvf_probe(struct pci_dev *pdev, const struct pci_device_id *id) +{ + struct device *dev = >dev; + struct ifcvf_adapter *adapter; + struct ifcvf_hw *vf; +

Re: [PATCH V8 9/9] virtio: Intel IFC VF driver for VDPA

2020-03-25 Thread Jason Gunthorpe
On Wed, Mar 25, 2020 at 04:27:11PM +0800, Jason Wang wrote: > +static int ifcvf_probe(struct pci_dev *pdev, const struct pci_device_id *id) > +{ > + struct device *dev = >dev; > + struct ifcvf_adapter *adapter; > + struct ifcvf_hw *vf; > + int ret, i; > + > + ret =