* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
-#ifdef RTE_LIBRTE_TABLE
-
#include <rte_byteorder.h>
#include <rte_hexdump.h>
#include <rte_string_fns.h>
printf("Getting/Creating the mempool ...\n");
pool = rte_mempool_lookup("mempool");
if (!pool) {
- pool = rte_mempool_create(
+ pool = rte_pktmbuf_pool_create(
"mempool",
POOL_SIZE,
- POOL_BUFFER_SIZE,
- POOL_CACHE_SIZE,
- sizeof(struct rte_pktmbuf_pool_private),
- rte_pktmbuf_pool_init, NULL,
- rte_pktmbuf_init, NULL,
- 0,
+ POOL_CACHE_SIZE, 0, POOL_BUFFER_SIZE,
0);
if (pool == NULL)
rte_panic("Cannot create mbuf pool\n");
.callback = test_table,
};
REGISTER_TEST_COMMAND(table_cmd);
-#endif