]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_ether/rte_ethdev.h
drivers/net: add generic ethdev macro to get PCI device
[dpdk.git] / lib / librte_ether / rte_ethdev.h
index 2784ad17e7a2cfcd34b4c6c32cfe51b863f4b104..d118c05b91ee623f4309d824affd79ed9a07140a 100644 (file)
@@ -1048,6 +1048,8 @@ TAILQ_HEAD(rte_eth_dev_cb_list, rte_eth_dev_callback);
        } \
 } while (0)
 
        } \
 } while (0)
 
+#define RTE_ETH_DEV_TO_PCI(eth_dev)    RTE_DEV_TO_PCI((eth_dev)->device)
+
 /**
  * l2 tunnel configuration.
  */
 /**
  * l2 tunnel configuration.
  */