| 149 | } |
| 150 | |
| 151 | int |
| 152 | rte_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 | |
| 174 | void |
| 175 | rte_cryptodev_pmd_probing_finish(struct rte_cryptodev *cryptodev) |
no test coverage detected