]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5.c
ethdev: get rid of device type
[dpdk.git] / drivers / net / mlx5 / mlx5.c
index 4eaabcda77735f55bbc893c75a932ea718ba9cad..f1de40ac561d4b81138bfc58303e078846992868 100644 (file)
@@ -617,7 +617,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)
 
                        snprintf(name, sizeof(name), "%s port %u",
                                 ibv_get_device_name(ibv_dev), port);
 
                        snprintf(name, sizeof(name), "%s port %u",
                                 ibv_get_device_name(ibv_dev), port);
-                       eth_dev = rte_eth_dev_allocate(name, RTE_ETH_DEV_PCI);
+                       eth_dev = rte_eth_dev_allocate(name);
                }
                if (eth_dev == NULL) {
                        ERROR("can not allocate rte ethdev");
                }
                if (eth_dev == NULL) {
                        ERROR("can not allocate rte ethdev");