Hi Stephen and Rami, I see your point, libpci seems to be the way to go.
Thanks, Georgios On Sun, Sep 10, 2017 at 11:55 AM, Rosen, Rami <[email protected]> wrote: > Hi, George, > > >There already is a standard library for this (libpci). > >I see no reason to add this to DPDK. > > +1. > > Follow in pciutils execution of, for example, > "lspci -d 8086:158b" > Where you get, for example: > 03:00.0 Ethernet controller: Intel Corporation Device 158b (rev 02) > (or any other vendrID:DeviceID combo). > > I would guess that behinds the scenes it is done by pci_lookup_name(): > https://github.com/pciutils/pciutils/blob/master/lib/names.c#L122 > > Regards, > Rami Rosen > > > -- Georgios Katsikas Industrial Ph.D. Student Network Intelligence Group Decision, Networks, and Analytics (DNA) Lab RISE SICS E-Mail: [email protected]
