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

Function testsuite_teardown

dpdk/app/test/test_cryptodev_asym.c:510–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510static void
511testsuite_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
533static int
534ut_setup_asym(void)

Callers

nothing calls this directly

Calls 3

rte_cryptodev_configureFunction · 0.85
rte_mempool_avail_countFunction · 0.85
rte_mempool_freeFunction · 0.85

Tested by

no test coverage detected