MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cryptodev_null_remove_dev

Function cryptodev_null_remove_dev

dpdk/drivers/crypto/null/null_crypto_pmd.c:212–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212static int
213cryptodev_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
229static struct rte_vdev_driver cryptodev_null_pmd_drv = {
230 .probe = cryptodev_null_probe,

Callers

nothing calls this directly

Calls 3

rte_vdev_device_nameFunction · 0.85

Tested by

no test coverage detected