Re: [dpdk-dev] [PATCH v6 1/9] ethdev: introduce representor type
From: Hyong Youb Kim (hyonkim) <hidden>
Date: 2021-02-15 02:26:00
-----Original Message----- From: Xueming Li <redacted> Sent: Sunday, February 14, 2021 12:22 PM Cc: dev@dpdk.org; Viacheslav Ovsiienko <redacted>; xuemingl@nvidia.com; Asaf Penso [off-list ref]; Ajit Khaparde [off-list ref]; Somnath Kotur [off-list ref]; John Daley (johndale) [off-list ref]; Hyong Youb Kim (hyonkim) [off-list ref]; Beilei Xing [off-list ref]; Jeff Guo [off-list ref]; Haiyue Wang [off-list ref]; Matan Azrad [off-list ref]; Shahaf Shuler [off-list ref]; Thomas Monjalon [off-list ref]; Ferruh Yigit [off-list ref]; Andrew Rybchenko [off-list ref] 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 <redacted>
[...]
quoted hunk ↗ jump to hunk
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-quoted
device.name,sizeof(struct enic), eth_dev_pci_specific_init, pci_dev,
For enic, Acked-by: Hyong Youb Kim <redacted> Thanks. -Hyong