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

Function app_init_mbuf_pools

dpdk/app/test/test_table.c:86–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86static void
87app_init_mbuf_pools(void)
88{
89 /* Init the buffer pool */
90 printf("Getting/Creating the mempool ...\n");
91 pool = rte_mempool_lookup("mempool");
92 if (!pool) {
93 pool = rte_pktmbuf_pool_create(
94 "mempool",
95 POOL_SIZE,
96 POOL_CACHE_SIZE, 0, POOL_BUFFER_SIZE,
97 0);
98 if (pool == NULL)
99 rte_panic("Cannot create mbuf pool\n");
100 }
101}
102
103static void
104app_init_rings(void)

Callers 1

test_tableFunction · 0.70

Calls 3

rte_mempool_lookupFunction · 0.85
rte_pktmbuf_pool_createFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected