sample test to allocate the mempool */
| 84 | |
| 85 | /* sample test to allocate the mempool */ |
| 86 | int |
| 87 | test_get_mempool(struct rte_mempool **mp, char *poolname) |
| 88 | { |
| 89 | *mp = rte_pktmbuf_pool_create(poolname, NB_MBUF, 32, 0, |
| 90 | RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id()); |
| 91 | if (*mp == NULL) |
| 92 | return -1; |
| 93 | return 0; |
| 94 | } |
| 95 | |
| 96 | /* sample test to allocate buffer for pkts */ |
| 97 | int |
no test coverage detected