X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_distributor_perf.c;h=92b222010f4f1df8c430ee540a42b8619ca50296;hb=7a7122edf1c8d63e516d1b2c2eff6fa9b54e0f82;hp=f04cb156d6452404490e62cd1e88071794aaa255;hpb=ea0c20ea95fd5d71a10757e6598ac66233ea1495;p=dpdk.git diff --git a/app/test/test_distributor_perf.c b/app/test/test_distributor_perf.c index f04cb156d6..92b222010f 100644 --- a/app/test/test_distributor_perf.c +++ b/app/test/test_distributor_perf.c @@ -35,7 +35,10 @@ #include #include +#include #include +#include +#include #include #define ITER_POWER 20 /* log 2 of how many iterations we do when timing. */ @@ -209,8 +212,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_perf(void) { @@ -241,7 +242,7 @@ test_distributor_perf(void) (BIG_BATCH * 2) - 1 : (511 * rte_lcore_count()); if (p == NULL) { p = rte_pktmbuf_pool_create("DPT_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;