From 00c685634b8a43e4594e26949a6c4f1cf5b67047 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Thu, 26 Feb 2015 17:56:34 +0100 Subject: [PATCH] mlx4: fix build There was a missing change due by hotplug integration. Fixes: 9f1653e7b7e1 ("ethdev: add device type") Signed-off-by: Thomas Monjalon --- lib/librte_pmd_mlx4/mlx4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.20.1