From: Thomas Monjalon Date: Thu, 26 Feb 2015 16:56:34 +0000 (+0100) Subject: mlx4: fix build X-Git-Tag: spdx-start~9520 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=00c685634b8a43e4594e26949a6c4f1cf5b67047;p=dpdk.git mlx4: fix build There was a missing change due by hotplug integration. Fixes: 9f1653e7b7e1 ("ethdev: add device type") Signed-off-by: Thomas Monjalon --- diff --git a/lib/librte_pmd_mlx4/mlx4.c b/lib/librte_pmd_mlx4/mlx4.c index 942f539274..492cbbf8e6 100644 --- a/lib/librte_pmd_mlx4/mlx4.c +++ b/lib/librte_pmd_mlx4/mlx4.c @@ -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");