X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl3fwd%2Fmain.c;h=e32512eff3718e706c8707acc9e8ae97c7f418db;hb=824cb29c0e7b8a2b3ed285546c3a39a8e0b3cd44;hp=78710386ab0a01c1aca2d9ab2220d3e8d4a2a830;hpb=11f51a26d3e3a3cf78efa4c0a20d6aa5b29117c2;p=dpdk.git diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index 78710386ab..e32512eff3 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -119,8 +119,6 @@ #define MEMPOOL_CACHE_SIZE 256 -#define MBUF_DATA_SIZE (2048 + RTE_PKTMBUF_HEADROOM) - /* * This expression is used to calculate the number of mbufs needed depending on user input, taking * into account memory for rx and tx hardware rings, cache per lcore and mtable per port per lcore. @@ -2316,8 +2314,8 @@ init_mem(unsigned nb_mbuf) snprintf(s, sizeof(s), "mbuf_pool_%d", socketid); pktmbuf_pool[socketid] = rte_pktmbuf_pool_create(s, nb_mbuf, - MEMPOOL_CACHE_SIZE, 0, MBUF_DATA_SIZE, - socketid); + MEMPOOL_CACHE_SIZE, 0, + RTE_MBUF_DEFAULT_BUF_SIZE, socketid); if (pktmbuf_pool[socketid] == NULL) rte_exit(EXIT_FAILURE, "Cannot init mbuf pool on socket %d\n", socketid);