X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl3fwd-vf%2Fmain.c;h=6e56cfb3acdcf782cafd5c5ad16c35f3d9ac843a;hb=824cb29c0e7b8a2b3ed285546c3a39a8e0b3cd44;hp=f007bc12556f5a05eb8adbfd476dbf10db8702c8;hpb=11f51a26d3e3a3cf78efa4c0a20d6aa5b29117c2;p=dpdk.git diff --git a/examples/l3fwd-vf/main.c b/examples/l3fwd-vf/main.c index f007bc1255..6e56cfb3ac 100644 --- a/examples/l3fwd-vf/main.c +++ b/examples/l3fwd-vf/main.c @@ -94,8 +94,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. @@ -925,8 +923,8 @@ init_mem(unsigned nb_mbuf) if (pktmbuf_pool[socketid] == NULL) { 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); + nb_mbuf, 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); else