apps: fix default mbuf size
[dpdk.git] / app / test / test_reorder.c
index 91fbe9a..5752d7e 100644 (file)
@@ -50,7 +50,6 @@
 #define REORDER_BUFFER_SIZE 16384
 #define NUM_MBUFS (2*REORDER_BUFFER_SIZE)
 #define REORDER_BUFFER_SIZE_INVALID 2049
-#define MBUF_DATA_SIZE (2048 + RTE_PKTMBUF_HEADROOM)
 
 struct reorder_unittest_params {
        struct rte_mempool *p;
@@ -352,7 +351,8 @@ test_setup(void)
        /* mempool creation */
        if (test_params->p == NULL) {
                test_params->p = rte_pktmbuf_pool_create("RO_MBUF_POOL",
-                       NUM_MBUFS, BURST, 0, MBUF_DATA_SIZE, rte_socket_id());
+                       NUM_MBUFS, BURST, 0, RTE_MBUF_DEFAULT_BUF_SIZE,
+                       rte_socket_id());
                if (test_params->p == NULL) {
                        printf("%s: Error creating mempool\n", __func__);
                        return -1;