]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_mempool_perf.c
app/test: decrease size of requested mempool
[dpdk.git] / app / test / test_mempool_perf.c
index 1f7539c7b74189c156768595449bfb61b6a77d5a..cdc02a007ca8c37733e591ff37f51301b3427f8f 100644 (file)
@@ -94,7 +94,7 @@
 #define TIME_S 5
 #define MEMPOOL_ELT_SIZE 2048
 #define MAX_KEEP 128
-#define MEMPOOL_SIZE ((RTE_MAX_LCORE*(MAX_KEEP+RTE_MEMPOOL_CACHE_MAX_SIZE))-1)
+#define MEMPOOL_SIZE ((rte_lcore_count()*(MAX_KEEP+RTE_MEMPOOL_CACHE_MAX_SIZE))-1)
 
 static struct rte_mempool *mp;
 static struct rte_mempool *mp_cache, *mp_nocache;