}
for (i = 0; i < nb_cryptodevs &&
- i < RTE_CRYPTO_MAX_DEVS; i++)
+ i < RTE_CRYPTO_MAX_DEVS; i++) {
rte_cryptodev_stop(enabled_cdevs[i]);
+ ret = rte_cryptodev_close(enabled_cdevs[i]);
+ if (ret)
+ RTE_LOG(ERR, USER1,
+ "Crypto device close error %d\n", ret);
+ }
free_test_vector(t_vec, &opts);
}
for (i = 0; i < nb_cryptodevs &&
- i < RTE_CRYPTO_MAX_DEVS; i++)
+ i < RTE_CRYPTO_MAX_DEVS; i++) {
rte_cryptodev_stop(enabled_cdevs[i]);
+ ret = rte_cryptodev_close(enabled_cdevs[i]);
+ if (ret)
+ RTE_LOG(ERR, USER1,
+ "Crypto device close error %d\n", ret);
+
+ }
rte_free(opts.imix_buffer_sizes);
free_test_vector(t_vec, &opts);