From: Marvin Liu Date: Wed, 29 Jul 2015 03:22:01 +0000 (+0800) Subject: app/test: fix sched mempool allocation X-Git-Tag: spdx-start~8558 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bed17d93a66a47e0cd11e9e4ff248204d9f5a8ae;p=dpdk.git app/test: fix sched mempool allocation In previous setting, mempool size and cache_size were both 32. It does not satisfy with cache_size checking rule by now. Cache size should be less than CONFIG_RTE_MEMPOOL_CACHE_MAX_SIZE and mempool size / 1.5. Fixes: 462321b44a80 ("mempool: limit cache size") Signed-off-by: Marvin Liu Acked-by: Jingjing Wu [Thomas: remove unused PKT_BURST_SZ] --- diff --git a/app/test/test_sched.c b/app/test/test_sched.c index 1ef69106b0..9712f9f099 100644 --- a/app/test/test_sched.c +++ b/app/test/test_sched.c @@ -87,8 +87,7 @@ static struct rte_sched_port_params port_param = { #define NB_MBUF 32 #define MBUF_DATA_SZ (2048 + RTE_PKTMBUF_HEADROOM) -#define PKT_BURST_SZ 32 -#define MEMPOOL_CACHE_SZ PKT_BURST_SZ +#define MEMPOOL_CACHE_SZ 0 #define SOCKET 0