| 508 | } |
| 509 | |
| 510 | static void |
| 511 | testsuite_teardown(void) |
| 512 | { |
| 513 | struct crypto_testsuite_params_asym *ts_params = &testsuite_params; |
| 514 | |
| 515 | /* Reset device */ |
| 516 | ts_params->qp_conf.mp_session = NULL; |
| 517 | ts_params->conf.ff_disable = 0; |
| 518 | if (rte_cryptodev_configure(ts_params->valid_devs[0], &ts_params->conf)) |
| 519 | RTE_LOG(DEBUG, USER1, "Could not reset cryptodev\n"); |
| 520 | |
| 521 | if (ts_params->op_mpool != NULL) { |
| 522 | RTE_LOG(DEBUG, USER1, "CRYPTO_OP_POOL count %u\n", |
| 523 | rte_mempool_avail_count(ts_params->op_mpool)); |
| 524 | } |
| 525 | |
| 526 | /* Free session mempools */ |
| 527 | if (ts_params->session_mpool != NULL) { |
| 528 | rte_mempool_free(ts_params->session_mpool); |
| 529 | ts_params->session_mpool = NULL; |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | static int |
| 534 | ut_setup_asym(void) |
nothing calls this directly
no test coverage detected