| 404 | } |
| 405 | |
| 406 | static int |
| 407 | zlib_remove(struct rte_vdev_device *vdev) |
| 408 | { |
| 409 | struct rte_compressdev *compressdev; |
| 410 | const char *name; |
| 411 | |
| 412 | name = rte_vdev_device_name(vdev); |
| 413 | if (name == NULL) |
| 414 | return -EINVAL; |
| 415 | |
| 416 | compressdev = rte_compressdev_pmd_get_named_dev(name); |
| 417 | if (compressdev == NULL) |
| 418 | return -ENODEV; |
| 419 | |
| 420 | return rte_compressdev_pmd_destroy(compressdev); |
| 421 | } |
| 422 | |
| 423 | static struct rte_vdev_driver zlib_pmd_drv = { |
| 424 | .probe = zlib_probe, |
nothing calls this directly
no test coverage detected