pci: split match and probe
authorShreyansh Jain <shreyansh.jain@nxp.com>
Tue, 11 Apr 2017 11:07:29 +0000 (13:07 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 14 Apr 2017 13:23:28 +0000 (15:23 +0200)
commitf102b9c37d04c89fc2faf6be04c022de65362799
tree527a8d9c341679d651549905ed4d04ab9e6c82c3
parentea9bd00994397fa8da021a9084873c89099fd5e3
pci: split match and probe

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).

Refactor the match logic as a single function.

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_eal/common/eal_common_pci.c