title: How do I obtain rte_pci_device details from rte_device in dpdk 18.08
body: <p>I want to compare the detected device information ( dev_info of type  struct rte_eth_dev_info dev_info )  associated with each port  with configured pci device address details ( of type struct rte_pci_addr  pciaddr).                                                        </p>
  
  <pre><code> for (port = 0; port &lt; nb_sys_ports; port++) {
         rte_eth_dev_info_get(port, &amp;dev_info);                                                         
   }  
  </code></pre>
  
  <p>But  In struct struct rte_eth_dev_info, field rte_pci_device *pci_dev has been replaced with field struct rte_device *device.
  So how do I obtain the rte_pci_device details from rte_device.</p>