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

Function uadk_cryptodev_remove

dpdk/drivers/crypto/uadk/uadk_crypto_pmd.c:1065–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1063}
1064
1065static int
1066uadk_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
1082static struct rte_vdev_driver uadk_crypto_pmd = {
1083 .probe = uadk_cryptodev_probe,

Callers

nothing calls this directly

Calls 3

rte_vdev_device_nameFunction · 0.85

Tested by

no test coverage detected