MCPcopy Index your code
hub / github.com/F-Stack/f-stack / rte_vdev_init

Function rte_vdev_init

dpdk/drivers/bus/vdev/vdev.c:319–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319int
320rte_vdev_init(const char *name, const char *args)
321{
322 struct rte_vdev_device *dev;
323 int ret;
324
325 rte_spinlock_recursive_lock(&vdev_device_list_lock);
326 ret = insert_vdev(name, args, &dev, true);
327 if (ret == 0) {
328 ret = vdev_probe_all_drivers(dev);
329 if (ret) {
330 if (ret > 0)
331 VDEV_LOG(ERR, "no driver found for %s", name);
332 /* If fails, remove it from vdev list */
333 TAILQ_REMOVE(&vdev_device_list, dev, next);
334 rte_devargs_remove(dev->device.devargs);
335 free(dev);
336 }
337 }
338 rte_spinlock_recursive_unlock(&vdev_device_list_lock);
339 return ret;
340}
341
342static int
343vdev_remove_driver(struct rte_vdev_device *dev)

Callers 15

testsuite_setupFunction · 0.85
rte_eth_from_ringsFunction · 0.85
rte_eth_bond_createFunction · 0.85
opdl_selftestFunction · 0.85
test_sw_eventdevFunction · 0.85
testsuite_setupFunction · 0.85
testsuite_setupFunction · 0.85
testsuite_setupFunction · 0.85
test_vdev_busFunction · 0.85
testsuite_setupFunction · 0.85
test_setupFunction · 0.85
configure_eventdevFunction · 0.85

Calls 6

insert_vdevFunction · 0.85
vdev_probe_all_driversFunction · 0.85
rte_devargs_removeFunction · 0.85
freeFunction · 0.50

Tested by 15

testsuite_setupFunction · 0.68
opdl_selftestFunction · 0.68
test_sw_eventdevFunction · 0.68
testsuite_setupFunction · 0.68
testsuite_setupFunction · 0.68
testsuite_setupFunction · 0.68
test_vdev_busFunction · 0.68
testsuite_setupFunction · 0.68
test_setupFunction · 0.68
configure_eventdevFunction · 0.68