X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_distributor.c;h=00b1d41387b491d4b007a059ba511667fd1cfdef;hb=ecf5fa864b5892e9453ace1f7388890c98197574;hp=ad4698763fcaf2f95ba239883dbd6d1a333b6dfc;hpb=ea0c20ea95fd5d71a10757e6598ac66233ea1495;p=dpdk.git diff --git a/app/test/test_distributor.c b/app/test/test_distributor.c index ad4698763f..00b1d41387 100644 --- a/app/test/test_distributor.c +++ b/app/test/test_distributor.c @@ -37,6 +37,8 @@ #include #include #include +#include +#include #include #define ITER_POWER 20 /* log 2 of how many iterations we do when timing. */ @@ -500,8 +502,6 @@ quit_workers(struct rte_distributor *d, struct rte_mempool *p) worker_idx = 0; } -#define MBUF_DATA_SIZE (2048 + RTE_PKTMBUF_HEADROOM) - static int test_distributor(void) { @@ -529,7 +529,7 @@ test_distributor(void) (BIG_BATCH * 2) - 1 : (511 * rte_lcore_count()); if (p == NULL) { p = rte_pktmbuf_pool_create("DT_MBUF_POOL", nb_bufs, BURST, - 0, MBUF_DATA_SIZE, rte_socket_id()); + 0, RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id()); if (p == NULL) { printf("Error creating mempool\n"); return -1;