> -----Original Message-----
> From: Xueming Li <[email protected]>
> Sent: Sunday, February 14, 2021 12:22 PM
> Cc: [email protected]; Viacheslav Ovsiienko <[email protected]>;
> [email protected]; Asaf Penso <[email protected]>; Ajit Khaparde
> <[email protected]>; Somnath Kotur
> <[email protected]>; John Daley (johndale)
> <[email protected]>; Hyong Youb Kim (hyonkim) <[email protected]>;
> Beilei Xing <[email protected]>; Jeff Guo <[email protected]>; Haiyue
> Wang <[email protected]>; Matan Azrad <[email protected]>;
> Shahaf Shuler <[email protected]>; Thomas Monjalon
> <[email protected]>; Ferruh Yigit <[email protected]>; Andrew
> Rybchenko <[email protected]>
> 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 <[email protected]>
[...]
> 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 <[email protected]>

Thanks.
-Hyong

Reply via email to