X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_mempool.c;h=f0f823b9ebb98d480a77ca69b51b7e3d0af489d1;hb=693f715da45c48ec1ec0fe4ba2f3b5ffd11ba53e;hp=9eb0d5da1266f776f4953cbc22b4ac6f5fe62a77;hpb=ff708facfcbf42f3dcb3c62d82ecd93e7b8c2506;p=dpdk.git diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c index 9eb0d5da12..f0f823b9eb 100644 --- a/app/test/test_mempool.c +++ b/app/test/test_mempool.c @@ -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; @@ -448,10 +448,10 @@ test_mempool_xmem_misc(void) printf("failure @ %s: rte_mempool_xmem_usage(%u, %u) " "returns: %#zx, while expected: %#zx;\n", __func__, elt_num, total_size, sz, (size_t)usz); - return (-1); + return -1; } - return (0); + return 0; } static int