From bed17d93a66a47e0cd11e9e4ff248204d9f5a8ae Mon Sep 17 00:00:00 2001 From: Marvin Liu Date: Wed, 29 Jul 2015 11:22:01 +0800 Subject: [PATCH] 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] --- app/test/test_sched.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.20.1