apps: fix default mbuf size
[dpdk.git] / examples / qos_sched / init.c
index aaf3466..88cf811 100644 (file)
@@ -336,7 +336,8 @@ int app_init(void)
                /* create the mbuf pools for each RX Port */
                snprintf(pool_name, MAX_NAME_LEN, "mbuf_pool%u", i);
                qos_conf[i].mbuf_pool = rte_pktmbuf_pool_create(pool_name,
-                       mp_size, burst_conf.rx_burst * 4, 0, MBUF_DATA_SIZE,
+                       mp_size, burst_conf.rx_burst * 4, 0,
+                       RTE_MBUF_DEFAULT_BUF_SIZE,
                        rte_eth_dev_socket_id(qos_conf[i].rx_port));
                if (qos_conf[i].mbuf_pool == NULL)
                        rte_exit(EXIT_FAILURE, "Cannot init mbuf pool for socket %u\n", i);