| 210 | } |
| 211 | |
| 212 | static int |
| 213 | cryptodev_null_remove_dev(struct rte_vdev_device *vdev) |
| 214 | { |
| 215 | struct rte_cryptodev *cryptodev; |
| 216 | const char *name; |
| 217 | |
| 218 | name = rte_vdev_device_name(vdev); |
| 219 | if (name == NULL) |
| 220 | return -EINVAL; |
| 221 | |
| 222 | cryptodev = rte_cryptodev_pmd_get_named_dev(name); |
| 223 | if (cryptodev == NULL) |
| 224 | return -ENODEV; |
| 225 | |
| 226 | return rte_cryptodev_pmd_destroy(cryptodev); |
| 227 | } |
| 228 | |
| 229 | static struct rte_vdev_driver cryptodev_null_pmd_drv = { |
| 230 | .probe = cryptodev_null_probe, |
nothing calls this directly
no test coverage detected