[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f436b6aa-3107-34c7-3f6c-59f36daa6205@amd.com>
Date: Thu, 6 Apr 2023 12:37:58 +0530
From: Gautam Dawar <gdawar@....com>
To: Gautam Dawar <gautam.dawar@....com>, linux-net-drivers@....com,
jasowang@...hat.com, Edward Cree <ecree.xilinx@...il.com>,
Martin Habets <habetsm.xilinx@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Richard Cochran <richardcochran@...il.com>,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Cc: eperezma@...hat.com, harpreet.anand@....com, tanuj.kamde@....com,
koushik.dutta@....com
Subject: Re: [PATCH net-next v3 13/13] sfc: register the vDPA device
Pls ignore this patch. It seems to be a stale patch (may be from v1 or v2).
Let me know if it is required to re-send the series without this patch
and call it v4.
Regards,
Gautam
On 4/6/23 12:26, Gautam Dawar wrote:
> Register the vDPA device which results in adding the device
> to the vDPA bus which will be probed by either of the vDPA
> bus drivers: virtio_vdpa or vhost_vdpa.
>
> Signed-off-by: Gautam Dawar <gautam.dawar@....com>
> ---
> drivers/net/ethernet/sfc/ef100_vdpa.c | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/sfc/ef100_vdpa.c b/drivers/net/ethernet/sfc/ef100_vdpa.c
> index 50c062b417aa..a6bf43d98939 100644
> --- a/drivers/net/ethernet/sfc/ef100_vdpa.c
> +++ b/drivers/net/ethernet/sfc/ef100_vdpa.c
> @@ -239,8 +239,7 @@ static void ef100_vdpa_delete(struct efx_nic *efx)
> }
> }
>
> - /* replace with _vdpa_unregister_device later */
> - put_device(&vdpa_dev->dev);
> + _vdpa_unregister_device(&efx->vdpa_nic->vdpa_dev);
> }
> efx_mcdi_free_vis(efx);
> }
> @@ -375,7 +374,14 @@ static struct ef100_vdpa_nic *ef100_vdpa_create(struct efx_nic *efx,
> if (rc)
> goto err_put_device;
>
> - /* _vdpa_register_device when its ready */
> + rc = _vdpa_register_device(&vdpa_nic->vdpa_dev,
> + (allocated_vis - 1) * 2);
> + if (rc) {
> + pci_err(efx->pci_dev,
> + "vDPA device registration failed, vf: %u, rc: %d\n",
> + nic_data->vf_index, rc);
> + goto err_put_device;
> + }
>
> return vdpa_nic;
>
Powered by blists - more mailing lists