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

Function rte_vdev_uninit

dpdk/drivers/bus/vdev/vdev.c:358–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358int
359rte_vdev_uninit(const char *name)
360{
361 struct rte_vdev_device *dev;
362 int ret;
363
364 if (name == NULL)
365 return -EINVAL;
366
367 rte_spinlock_recursive_lock(&vdev_device_list_lock);
368
369 dev = find_vdev(name);
370 if (!dev) {
371 ret = -ENOENT;
372 goto unlock;
373 }
374
375 ret = vdev_remove_driver(dev);
376 if (ret)
377 goto unlock;
378
379 TAILQ_REMOVE(&vdev_device_list, dev, next);
380 rte_devargs_remove(dev->device.devargs);
381 free(dev);
382
383unlock:
384 rte_spinlock_recursive_unlock(&vdev_device_list_lock);
385 return ret;
386}
387
388struct vdev_param {
389#define VDEV_SCAN_REQ 1

Callers 15

ifpga_rawdev_closeFunction · 0.85
local_teardownFunction · 0.85
rte_eth_bond_freeFunction · 0.85
vdev_unplugFunction · 0.85
testsuite_teardownFunction · 0.85
test_vdev_busFunction · 0.85
test_setupFunction · 0.85
test_cleanupFunction · 0.85
test_ring_pmd_perfFunction · 0.85
test_cleanup_resourcesFunction · 0.85
testsuite_teardownFunction · 0.85

Calls 6

vdev_remove_driverFunction · 0.85
rte_devargs_removeFunction · 0.85
find_vdevFunction · 0.70
freeFunction · 0.50

Tested by 15

local_teardownFunction · 0.68
testsuite_teardownFunction · 0.68
test_vdev_busFunction · 0.68
test_setupFunction · 0.68
test_cleanupFunction · 0.68
test_ring_pmd_perfFunction · 0.68
test_cleanup_resourcesFunction · 0.68
testsuite_teardownFunction · 0.68
test_vdev_uninitFunction · 0.68
deinit_portsFunction · 0.68