On Tue, Jan 14, 2020 at 12:58 PM Selwin Sebastian <selwin.sebast...@amd.com> wrote: > > V1000/R1000 processors are using the same PCI ids for the network > device as SNOWYOWL processor but has altered register definitions > for determining the window settings for the indirect PCS access. > Add support to check for this hardware and if found use the new > register values. > > Added a new routine rte_pci_search_device to pci driver to search > for a device.
You can already iterate on a bus devices. struct rte_bus *pci_bus = rte_bus_find_by_name("pci"); return pci_bus != NULL && pci_bus->find_device(NULL, callback, args) != NULL; See: https://git.dpdk.org/dpdk/tree/drivers/bus/pci/pci_params.c#n38 -- David Marchand