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

Function fbk_clean

dpdk/app/test/test_func_reentrancy.c:273–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273static void
274fbk_clean(unsigned lcore_id)
275{
276 char fbk_name[MAX_STRING_SIZE];
277 struct rte_fbk_hash_table *handle;
278 int i;
279
280 handle = rte_fbk_hash_find_existing("fr_test_once");
281 rte_fbk_hash_free(handle);
282
283 for (i = 0; i < MAX_ITER_MULTI; i++) {
284 snprintf(fbk_name, sizeof(fbk_name), "fr_test_%d_%d", lcore_id, i);
285
286 if ((handle = rte_fbk_hash_find_existing(fbk_name)) != NULL)
287 rte_fbk_hash_free(handle);
288 }
289}
290
291static int
292fbk_create_free(__rte_unused void *arg)

Callers

nothing calls this directly

Calls 3

rte_fbk_hash_freeFunction · 0.85
snprintfFunction · 0.85

Tested by

no test coverage detected