[dpdk-users] Retrieve NIC vendor name using PCI vendor ID

george.dit at gmail.com george.dit at gmail.com
Mon Sep 11 09:10:02 CEST 2017


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 <rami.rosen at intel.com> 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:  georgios.katsikas at ri.se


More information about the users mailing list