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>
This commit is contained in:
parent
c037fc8732
commit
4460005cf4
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user