DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Getting pci id using port id with latest DPDK
@ 2017-03-23  7:47 Mike Shang
  2017-03-23  9:16 ` Shreyansh Jain
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Shang @ 2017-03-23  7:47 UTC (permalink / raw)
  To: users

Hi,
I have legacy code that needs to get pci id using port id in order to make
different config for different pci device. In the past, we can do that with
a simple call to rte_eth_dev_info_get() and look into the pci_dev file in
rte_eth_dev_info structure. But with latest DPDK, rte_eth_dev_info_get() no
longer fills pci_dev after this commit (
http://dpdk.org/browse/dpdk/commit/lib/librte_ether/rte_ethdev.c?id=ae34410a8a8aff1b8382e16fcc89353648355be0
) Looks like the developers wanted to decouple pci device from a general
device.
Under such condition, how can I get the needed pci id from port id ? I scan
all function listed in rte_ethdev.h but didn't find such function. Maybe
there an indirect to do that? as a last resort, I can patch the dpdk source
code to make rte_eth_dev_info_get() fill pci_dev again but that may be the
last thing I would consider.....

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-23  9:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-23  7:47 [dpdk-users] Getting pci id using port id with latest DPDK Mike Shang
2017-03-23  9:16 ` Shreyansh Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).