summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTomasz Kulasek <tomaszx.kulasek@intel.com>2017-07-26 17:46:07 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2017-07-31 19:58:41 +0200
commit4460005cf4edf30d1f56f9cdcdf7f864f08cd386 (patch)
tree991da90b3c179158b987717aeabdd753e13e3956 /test
parentc037fc87324e900574c044cd2f19950c68019b56 (diff)
downloaddpdk-4460005cf4edf30d1f56f9cdcdf7f864f08cd386.zip
dpdk-4460005cf4edf30d1f56f9cdcdf7f864f08cd386.tar.gz
dpdk-4460005cf4edf30d1f56f9cdcdf7f864f08cd386.tar.xz
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 <tomaszx.kulasek@intel.com> Acked-by: Declan Doherty <declan.doherty@intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/test/virtual_pmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c
index 8e698bc..9d46ad5 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;