DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Accessing "device_id" from "rte_pci_device"
@ 2018-07-24 10:09 santhosh K.S
  2018-07-24 19:22 ` Rosen, Rami
  0 siblings, 1 reply; 5+ messages in thread
From: santhosh K.S @ 2018-07-24 10:09 UTC (permalink / raw)
  To: dev

Hi,

I'm currently trying to migrate our old DPDK 16.11 version to 17.11 release.

For this activity, I'm able to build the 17.11 DPDK successfully. When I
try to use the new libs, I noticed that few of the struct members which we
are using in our code is moved to some other struct.

In the 16.11 version we were using "*rte_eth_dev_info_get*" API to get the
device_id information using "*rte_pci_device*" struct which was initialized
inside the rte_eth_dev_info_get() API.

But now in 17.11 "*rte_pci_device" pointer * is not initialized inside the
ret_eth_dev_inf_get() API, that is because rte_pic_device is no longer a
member of the struct "*rte_eth_dev*". Hence I'm not able to retrive the
device_id from "*pci_dev->id.device_id*"

Can anyone please point me to an example code which illustrates the same?

I've already googled and got this link
<http://doc.dpdk.org/api-17.11/examples_2ethtool_2lib_2rte_ethtool_8c-example.html#a5>.
Which unfortunately doesn't show how to extract the *device_id*.

Best Regards,
Santy

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

end of thread, other threads:[~2018-07-25 11:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-24 10:09 [dpdk-dev] Accessing "device_id" from "rte_pci_device" santhosh K.S
2018-07-24 19:22 ` Rosen, Rami
     [not found]   ` <CAHJickaT+gCoJ_O=jjwfyr8Hnm3PF60zt7fWpfChOm6p0yvhjg@mail.gmail.com>
     [not found]     ` <CAHJickYNGDAe=pNBhdqNykns0NUD6k0xjTvjTx0sKQLVaVnWyA@mail.gmail.com>
2018-07-25  6:40       ` Rosen, Rami
2018-07-25 10:28         ` santhosh K.S
2018-07-25 11:21           ` Rosen, Rami

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).