Re: [dpdk-dev] [PATCH v5 07/12] pci: split match and probe function

2017-01-03 Thread Thomas Monjalon
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 th

[dpdk-dev] [PATCH v5 07/12] pci: split match and probe function

2016-12-26 Thread Shreyansh Jain
Matching of PCI device address and driver ID table is being done at two discreet locations duplicating the code. (rte_eal_pci_probe_one_driver and rte_eal_pci_detach_dev). Splitting the matching function into rte_eal_pci_match. Signed-off-by: Shreyansh Jain -- v2: - Change default return in ma