| 84 | } |
| 85 | |
| 86 | static void |
| 87 | app_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 | |
| 103 | static void |
| 104 | app_init_rings(void) |
no test coverage detected