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

Function hash_clean

dpdk/app/test/test_func_reentrancy.c:206–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204
205#ifdef RTE_LIB_HASH
206static void
207hash_clean(unsigned lcore_id)
208{
209 char hash_name[MAX_STRING_SIZE];
210 struct rte_hash *handle;
211 int i;
212
213 handle = rte_hash_find_existing("fr_test_once");
214 rte_hash_free(handle);
215
216 for (i = 0; i < MAX_ITER_MULTI; i++) {
217 snprintf(hash_name, sizeof(hash_name), "fr_test_%d_%d", lcore_id, i);
218
219 if ((handle = rte_hash_find_existing(hash_name)) != NULL)
220 rte_hash_free(handle);
221 }
222}
223
224static int
225hash_create_free(__rte_unused void *arg)

Callers

nothing calls this directly

Calls 3

rte_hash_find_existingFunction · 0.85
rte_hash_freeFunction · 0.85
snprintfFunction · 0.85

Tested by

no test coverage detected