[dpdk-dev] [PATCH v5 1/4] net/virtio: refactor devargs parsing

David Marchand david.marchand at redhat.com
Tue Mar 3 09:42:21 CET 2020


On Thu, Feb 27, 2020 at 3:20 PM Ivan Dyukov <i.dyukov at samsung.com> wrote:
>
> refactor vdpa specific devargs parsing to more generic way
>
> Signed-off-by: Ivan Dyukov <i.dyukov at samsung.com>
> ---
>  drivers/net/virtio/virtio_ethdev.c | 34 +++++++++++++++++++++---------
>  1 file changed, 24 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c
> index 044eb10a7..d2c7f8c61 100644
> --- a/drivers/net/virtio/virtio_ethdev.c
> +++ b/drivers/net/virtio/virtio_ethdev.c
[snip]
> @@ -1995,8 +2001,16 @@ vdpa_mode_selected(struct rte_devargs *devargs)
>  static int eth_virtio_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
>         struct rte_pci_device *pci_dev)
>  {
> +       int vdpa = 0;
> +       int ret = 0;
> +
> +       ret = virtio_dev_devargs_parse(pci_dev->device.devargs, &vdpa);
> +       if (ret < 0) {
> +               PMD_INIG_LOG(ERR, "devargs parsing is failed");

PMD_INIT_LOG

https://lab.dpdk.org/results/dashboard/patchsets/9772/
https://travis-ci.com/ovsrobot/dpdk/builds/150851427



-- 
David Marchand



More information about the dev mailing list