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

Function ring_clean

dpdk/app/test/test_func_reentrancy.c:84–100  ·  view source on GitHub ↗

* ring create/lookup reentrancy test */

Source from the content-addressed store, hash-verified

82 * ring create/lookup reentrancy test
83 */
84static void
85ring_clean(unsigned int lcore_id)
86{
87 struct rte_ring *rp;
88 char ring_name[MAX_STRING_SIZE];
89 int i;
90
91 rp = rte_ring_lookup("fr_test_once");
92 rte_ring_free(rp);
93
94 for (i = 0; i < MAX_ITER_MULTI; i++) {
95 snprintf(ring_name, sizeof(ring_name),
96 "fr_test_%d_%d", lcore_id, i);
97 rp = rte_ring_lookup(ring_name);
98 rte_ring_free(rp);
99 }
100}
101
102static int
103ring_create_lookup(__rte_unused void *arg)

Callers

nothing calls this directly

Calls 3

rte_ring_lookupFunction · 0.85
rte_ring_freeFunction · 0.85
snprintfFunction · 0.85

Tested by

no test coverage detected