[dpdk-dev] [PATCH v6 1/9] ethdev: introduce representor type
Hyong Youb Kim (hyonkim)
hyonkim at cisco.com
Mon Feb 15 03:25:50 CET 2021
> -----Original Message-----
> From: Xueming Li <xuemingl at nvidia.com>
> Sent: Sunday, February 14, 2021 12:22 PM
> Cc: dev at dpdk.org; Viacheslav Ovsiienko <viacheslavo at nvidia.com>;
> xuemingl at nvidia.com; Asaf Penso <asafp at nvidia.com>; Ajit Khaparde
> <ajit.khaparde at broadcom.com>; Somnath Kotur
> <somnath.kotur at broadcom.com>; John Daley (johndale)
> <johndale at cisco.com>; Hyong Youb Kim (hyonkim) <hyonkim at cisco.com>;
> Beilei Xing <beilei.xing at intel.com>; Jeff Guo <jia.guo at intel.com>; Haiyue
> Wang <haiyue.wang at intel.com>; Matan Azrad <matan at nvidia.com>;
> Shahaf Shuler <shahafs at nvidia.com>; Thomas Monjalon
> <thomas at monjalon.net>; Ferruh Yigit <ferruh.yigit at intel.com>; Andrew
> Rybchenko <andrew.rybchenko at oktetlabs.ru>
> Subject: [PATCH v6 1/9] ethdev: introduce representor type
>
> To support more representor type, this patch introduces representor type
> enum. The enum is subject to be extended to support new representor in
> patches upcoming.
>
> For each devarg structure, only one type supported.
>
> Signed-off-by: Xueming Li <xuemingl at nvidia.com>
[...]
> diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c
> index b3f441c8f7..def669f411 100644
> --- a/drivers/net/enic/enic_ethdev.c
> +++ b/drivers/net/enic/enic_ethdev.c
> @@ -1312,6 +1312,12 @@ static int eth_enic_pci_probe(struct rte_pci_driver
> *pci_drv __rte_unused,
> if (retval)
> return retval;
> }
> + if (eth_da.nb_representor_ports > 0 &&
> + eth_da.type != RTE_ETH_REPRESENTOR_VF) {
> + ENICPMD_LOG(ERR, "unsupported representor type: %s\n",
> + pci_dev->device.devargs->args);
> + return -ENOTSUP;
> + }
> retval = rte_eth_dev_create(&pci_dev->device, pci_dev-
> >device.name,
> sizeof(struct enic),
> eth_dev_pci_specific_init, pci_dev,
For enic,
Acked-by: Hyong Youb Kim <hyonkim at cisco.com>
Thanks.
-Hyong
More information about the dev
mailing list