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

Function test_multiple_create

dpdk/app/test/test_thash.c:406–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406static int
407test_multiple_create(void)
408{
409 struct rte_thash_ctx *ctx;
410 int key_len = 40;
411 int reta_sz = 7;
412 int i;
413
414 for (i = 0; i < 100; i++) {
415 ctx = rte_thash_init_ctx("test", key_len, reta_sz, NULL, 0);
416 RTE_TEST_ASSERT(ctx != NULL, "Can not create CTX\n");
417
418 rte_thash_free_ctx(ctx);
419 }
420
421 return TEST_SUCCESS;
422}
423
424static int
425test_free_null(void)

Callers

nothing calls this directly

Calls 2

rte_thash_init_ctxFunction · 0.85
rte_thash_free_ctxFunction · 0.85

Tested by

no test coverage detected