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

Function cryptodev_fini

dpdk/app/test-security-perf/test_security_perf.c:150–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static int
151cryptodev_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
167static int
168mempool_init(struct test_ctx *ctx, uint8_t nb_lcores)

Callers 1

mainFunction · 0.70

Calls 2

rte_cryptodev_stopFunction · 0.85
rte_cryptodev_closeFunction · 0.85

Tested by

no test coverage detected