Skip to contentSkip to conversation

ethdev: replacement for rte_pci_dev_ids.h?

DISCUSSION Sean Hope (shope) 2 participants 3 messages Apr 7, 2016 – Apr 8, 2016

lore
Share & tools
lore
#0 lore raw

Hello,

I see that rte_pci_dev_ids.h has been removed.

We are using it on our product to get supported device ids.

I understand the desire to move that data out of a central place and into each driver. Any chance that instead of living in a .c file, that each driver could hold it in a .h file so that it could be easily consumed by an external program?

Thanks,
Sean

#1 lore raw

2016-04-07 18:10, Sean Hope:

Quoted 3 lines

Hello,

I see that rte_pci_dev_ids.h has been removed.

No it has not been removed (yet):
http://dpdk.org/browse/dpdk/tree/lib/librte_eal/common/include/rte_pci_dev_ids.h

Quoted 6 lines

We are using it on our product to get supported device ids.

I understand the desire to move that data out of a central place and into each driver. Any chance that instead of living in a .c file, that each driver could hold it in a .h file so that it could be easily consumed by an external program?

Yes there is a plan to move the PCI ids in the drivers but we need to make a tool to retrieve the ids from the ELF files. Why do you want to get them from a .h file?

#2 lore raw
Quoted 18 lines

2016-04-07 18:10, Sean Hope:

Quoted 3 lines

Hello,

I see that rte_pci_dev_ids.h has been removed.

No it has not been removed (yet):
http://dpdk.org/browse/dpdk/tree/lib/librte_eal/common/include/rte_pci_de
v_ids.h

Quoted 7 lines

We are using it on our product to get supported device ids.

I understand the desire to move that data out of a central place and into
each driver. Any chance that instead of living in a .c file, that each driver could hold it in a .h file so that it could be easily consumed by an external program?

Quoted 3 lines

Yes there is a plan to move the PCI ids in the drivers but we need to make a tool to retrieve the ids from the ELF files. Why do you want to get them from a .h file?

The need for a .h file isn't an absolute, but we have some code that was using the existing file. If each driver had their Ids in a per-driver .h file then we just include one h file per driver instead of rte_pci_dev_ids.h and our tool still works.

Thanks,
Sean