]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_distributor.c
apps: fix default mbuf size
[dpdk.git] / app / test / test_distributor.c
index afe33a7fceb38d520ce97679db5c1b8ce083617d..00b1d41387b491d4b007a059ba511667fd1cfdef 100644 (file)
@@ -502,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)
 {
@@ -531,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;