Remove compression device */
| 703 | |
| 704 | /** Remove compression device */ |
| 705 | static int |
| 706 | compdev_isal_remove_dev(struct rte_vdev_device *vdev) |
| 707 | { |
| 708 | struct rte_compressdev *compdev; |
| 709 | const char *name; |
| 710 | |
| 711 | name = rte_vdev_device_name(vdev); |
| 712 | if (name == NULL) |
| 713 | return -EINVAL; |
| 714 | |
| 715 | compdev = rte_compressdev_pmd_get_named_dev(name); |
| 716 | if (compdev == NULL) |
| 717 | return -ENODEV; |
| 718 | |
| 719 | return rte_compressdev_pmd_destroy(compdev); |
| 720 | } |
| 721 | |
| 722 | /** Initialise ISA-L compression device */ |
| 723 | static int |
nothing calls this directly
no test coverage detected