| 340 | } |
| 341 | |
| 342 | static int |
| 343 | vdev_remove_driver(struct rte_vdev_device *dev) |
| 344 | { |
| 345 | const char *name = rte_vdev_device_name(dev); |
| 346 | const struct rte_vdev_driver *driver; |
| 347 | |
| 348 | if (!dev->device.driver) { |
| 349 | VDEV_LOG(DEBUG, "no driver attach to device %s", name); |
| 350 | return 1; |
| 351 | } |
| 352 | |
| 353 | driver = container_of(dev->device.driver, const struct rte_vdev_driver, |
| 354 | driver); |
| 355 | return driver->remove(dev); |
| 356 | } |
| 357 | |
| 358 | int |
| 359 | rte_vdev_uninit(const char *name) |
no test coverage detected