[dpdk-dev] [PATCH v3] drivers: add a HW quirk for register definitions

David Marchand david.marchand at redhat.com
Tue Jan 14 13:35:49 CET 2020


On Tue, Jan 14, 2020 at 12:58 PM Selwin Sebastian
<Selwin.Sebastian at 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



More information about the dev mailing list