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

Function lpm_clean

dpdk/app/test/test_func_reentrancy.c:342–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340
341#ifdef RTE_LIB_LPM
342static void
343lpm_clean(unsigned int lcore_id)
344{
345 char lpm_name[MAX_STRING_SIZE];
346 struct rte_lpm *lpm;
347 int i;
348
349 lpm = rte_lpm_find_existing("fr_test_once");
350 rte_lpm_free(lpm);
351
352 for (i = 0; i < MAX_LPM_ITER_TIMES; i++) {
353 snprintf(lpm_name, sizeof(lpm_name), "fr_test_%d_%d", lcore_id, i);
354
355 if ((lpm = rte_lpm_find_existing(lpm_name)) != NULL)
356 rte_lpm_free(lpm);
357 }
358}
359
360static int
361lpm_create_free(__rte_unused void *arg)

Callers

nothing calls this directly

Calls 3

snprintfFunction · 0.85
rte_lpm_find_existingFunction · 0.50
rte_lpm_freeFunction · 0.50

Tested by

no test coverage detected