ethdev: decouple from PCI device
[dpdk.git] / drivers / net / mlx5 / mlx5_ethdev.c
index da1a3ca..65228d5 100644 (file)
@@ -562,7 +562,7 @@ mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)
        unsigned int max;
        char ifname[IF_NAMESIZE];
 
-       info->pci_dev = dev->pci_dev;
+       info->pci_dev = RTE_DEV_TO_PCI(dev->device);
 
        priv_lock(priv);
        /* FIXME: we should ask the device for these values. */