Uninitialise device */
| 322 | |
| 323 | /* Uninitialise device */ |
| 324 | static int |
| 325 | null_bbdev_remove(struct rte_vdev_device *vdev) |
| 326 | { |
| 327 | struct rte_bbdev *bbdev; |
| 328 | const char *name; |
| 329 | |
| 330 | if (vdev == NULL) |
| 331 | return -EINVAL; |
| 332 | |
| 333 | name = rte_vdev_device_name(vdev); |
| 334 | if (name == NULL) |
| 335 | return -EINVAL; |
| 336 | |
| 337 | bbdev = rte_bbdev_get_named_dev(name); |
| 338 | if (bbdev == NULL) |
| 339 | return -EINVAL; |
| 340 | |
| 341 | rte_free(bbdev->data->dev_private); |
| 342 | |
| 343 | return rte_bbdev_release(bbdev); |
| 344 | } |
| 345 | |
| 346 | static struct rte_vdev_driver bbdev_null_pmd_drv = { |
| 347 | .probe = null_bbdev_probe, |
nothing calls this directly
no test coverage detected