]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_mempool.c
i40e/base: store CEE DCBX config
[dpdk.git] / app / test / test_mempool.c
index 9eb0d5da1266f776f4953cbc22b4ac6f5fe62a77..72f8fb62b6e164b9af5dd63e51a2b198f90a8cb7 100644 (file)
@@ -75,7 +75,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;