From 4460005cf4edf30d1f56f9cdcdf7f864f08cd386 Mon Sep 17 00:00:00 2001 From: Tomasz Kulasek Date: Wed, 26 Jul 2017 17:46:07 +0200 Subject: [PATCH] test: fix virtual device name not set Device name in device structure in virtual device used in link_bonding_autotest is not set what causes segmentation fault when rte_eth_dev_allocated is called. Fixes: a1e7c17555e8 ("ethdev: use device name from device structure") Signed-off-by: Tomasz Kulasek Acked-by: Declan Doherty --- test/test/virtual_pmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c index 8e698bc8a0..9d46ad564f 100644 --- a/test/test/virtual_pmd.c +++ b/test/test/virtual_pmd.c @@ -565,6 +565,7 @@ virtual_ethdev_create(const char *name, struct ether_addr *mac_addr, goto err; pci_dev->device.numa_node = socket_id; + pci_dev->device.name = eth_dev->data->name; pci_drv->driver.name = virtual_ethdev_driver_name; pci_drv->id_table = id_table; -- 2.20.1