mlx4: fix build
authorThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 26 Feb 2015 16:56:34 +0000 (17:56 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 26 Feb 2015 17:02:24 +0000 (18:02 +0100)
There was a missing change due by hotplug integration.

Fixes: 9f1653e7b7e1 ("ethdev: add device type")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_mlx4/mlx4.c

index 942f539..492cbbf 100644 (file)
@@ -4632,7 +4632,7 @@ mlx4_pci_devinit(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);
-                       eth_dev = rte_eth_dev_allocate(name);
+                       eth_dev = rte_eth_dev_allocate(name, RTE_ETH_DEV_PCI);
                }
                if (eth_dev == NULL) {
                        ERROR("can not allocate rte ethdev");