| 1063 | } |
| 1064 | |
| 1065 | static int |
| 1066 | uadk_cryptodev_remove(struct rte_vdev_device *vdev) |
| 1067 | { |
| 1068 | struct rte_cryptodev *cryptodev; |
| 1069 | const char *name; |
| 1070 | |
| 1071 | name = rte_vdev_device_name(vdev); |
| 1072 | if (name == NULL) |
| 1073 | return -EINVAL; |
| 1074 | |
| 1075 | cryptodev = rte_cryptodev_pmd_get_named_dev(name); |
| 1076 | if (cryptodev == NULL) |
| 1077 | return -ENODEV; |
| 1078 | |
| 1079 | return rte_cryptodev_pmd_destroy(cryptodev); |
| 1080 | } |
| 1081 | |
| 1082 | static struct rte_vdev_driver uadk_crypto_pmd = { |
| 1083 | .probe = uadk_cryptodev_probe, |
nothing calls this directly
no test coverage detected