2017-01-17 19:07, Shreyansh Jain: > Each bus implementation defines their own callbacks for scanning its bus > and probing devices available on the bus. Enable EAL to call bus specific > scan and probe functions during DPDK initialization. > > Existing PCI scan/probe continues to exist. It will removed in subsequent > patches. > > Signed-off-by: Shreyansh Jain <shreyansh.j...@nxp.com> > Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com> > --- > lib/librte_eal/bsdapp/eal/eal.c | 8 +++ > lib/librte_eal/bsdapp/eal/eal_pci.c | 11 ++++ > lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 + > lib/librte_eal/common/eal_common_bus.c | 40 +++++++++++++++ > lib/librte_eal/common/eal_common_pci.c | 33 ++++++++++++ > lib/librte_eal/common/include/rte_bus.h | 19 +++++++ > lib/librte_eal/common/include/rte_pci.h | 68 > +++++++++++++++++++++++++ > lib/librte_eal/linuxapp/eal/eal.c | 8 +++ > lib/librte_eal/linuxapp/eal/eal_pci.c | 15 ++++++ > lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 + > 10 files changed, 206 insertions(+)
You can make 2 patches here: - 1 patch for generic functions - 1 patch for PCI implementation