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

Function rte_cryptodev_pmd_destroy

dpdk/lib/cryptodev/cryptodev_pmd.c:151–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151int
152rte_cryptodev_pmd_destroy(struct rte_cryptodev *cryptodev)
153{
154 int retval;
155 void *dev_priv = cryptodev->data->dev_private;
156
157 CDEV_LOG_INFO("Closing crypto device %s", cryptodev->device->name);
158
159 /* free crypto device */
160 retval = rte_cryptodev_pmd_release_device(cryptodev);
161 if (retval)
162 return retval;
163
164 if (rte_eal_process_type() == RTE_PROC_PRIMARY)
165 rte_free(dev_priv);
166
167
168 cryptodev->device = NULL;
169 cryptodev->data = NULL;
170
171 return 0;
172}
173
174void
175rte_cryptodev_pmd_probing_finish(struct rte_cryptodev *cryptodev)

Callers 15

qat_asym_dev_createFunction · 0.85
qat_asym_dev_destroyFunction · 0.85
qat_sym_dev_createFunction · 0.85
qat_sym_dev_destroyFunction · 0.85
cryptodev_openssl_removeFunction · 0.85
bcmfs_sym_dev_destroyFunction · 0.85
mlx5_crypto_dev_probeFunction · 0.85
mlx5_crypto_dev_removeFunction · 0.85
nitrox_sym_pmd_destroyFunction · 0.85

Calls 3

rte_eal_process_typeFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected