| 148 | } |
| 149 | |
| 150 | static int |
| 151 | cryptodev_fini(struct test_ctx *ctx) |
| 152 | { |
| 153 | int i, ret = 0; |
| 154 | |
| 155 | for (i = 0; i < ctx->nb_cryptodevs && |
| 156 | i < RTE_CRYPTO_MAX_DEVS; i++) { |
| 157 | rte_cryptodev_stop(ctx->enabled_cdevs[i]); |
| 158 | ret = rte_cryptodev_close(ctx->enabled_cdevs[i]); |
| 159 | if (ret) |
| 160 | RTE_LOG(ERR, USER1, |
| 161 | "Crypto device close error %d\n", ret); |
| 162 | } |
| 163 | |
| 164 | return ret; |
| 165 | } |
| 166 | |
| 167 | static int |
| 168 | mempool_init(struct test_ctx *ctx, uint8_t nb_lcores) |
no test coverage detected