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");
+
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;
> > > + }
> > > +
> > > +
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;
+
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 =