[dpdk-dev] [PATCH v5 07/12] pci: split match and probe function
Thomas Monjalon
thomas.monjalon at 6wind.com
Tue Jan 3 23:08:09 CET 2017
2016-12-26 18:54, Shreyansh Jain:
> --- a/lib/librte_eal/common/include/rte_pci.h
> +++ b/lib/librte_eal/common/include/rte_pci.h
> @@ -373,6 +373,21 @@ rte_eal_compare_pci_addr(const struct rte_pci_addr *addr,
> int rte_eal_pci_scan(void);
>
> /**
> + * Match the PCI Driver and Device using the ID Table
> + *
> + * @param pci_drv
> + * PCI driver from which ID table would be extracted
> + * @param pci_dev
> + * PCI device to match against the driver
> + * @return
> + * 0 for successful match
> + * !0 for unsuccessful match
> + */
> +int
> +rte_eal_pci_match(struct rte_pci_driver *pci_drv,
> + struct rte_pci_device *pci_dev);
Yes we definitely need this function.
More information about the dev
mailing list