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

Function testsuite_teardown

dpdk/app/test/test_cryptodev.c:687–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687static void
688testsuite_teardown(void)
689{
690 struct crypto_testsuite_params *ts_params = &testsuite_params;
691 int res;
692
693 if (ts_params->mbuf_pool != NULL) {
694 RTE_LOG(DEBUG, USER1, "CRYPTO_MBUFPOOL count %u\n",
695 rte_mempool_avail_count(ts_params->mbuf_pool));
696 }
697
698 if (ts_params->op_mpool != NULL) {
699 RTE_LOG(DEBUG, USER1, "CRYPTO_OP_POOL count %u\n",
700 rte_mempool_avail_count(ts_params->op_mpool));
701 }
702
703 if (ts_params->session_mpool != NULL) {
704 rte_mempool_free(ts_params->session_mpool);
705 ts_params->session_mpool = NULL;
706 }
707
708 res = rte_cryptodev_close(ts_params->valid_devs[0]);
709 if (res)
710 RTE_LOG(ERR, USER1, "Crypto device close error %d\n", res);
711}
712
713static int
714check_capabilities_supported(enum rte_crypto_sym_xform_type type,

Callers

nothing calls this directly

Calls 3

rte_mempool_avail_countFunction · 0.85
rte_mempool_freeFunction · 0.85
rte_cryptodev_closeFunction · 0.85

Tested by

no test coverage detected