X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=app%2Ftest%2Ftest_stack.c;h=c8dac1f55cdce8ae31e6b6dce0cabebcbfd69904;hp=e972a61a7fb19b39672c06f05c8b160ccd174e9a;hb=e0f4a0ed4237e273b78728b7c7a3bf71d2d5218f;hpb=ce33e2eaff61ca89c64d04e1775cc8b29f11c2e6 diff --git a/app/test/test_stack.c b/app/test/test_stack.c index e972a61a7f..c8dac1f55c 100644 --- a/app/test/test_stack.c +++ b/app/test/test_stack.c @@ -336,12 +336,14 @@ test_stack_multithreaded(uint32_t flags) struct rte_stack *s; rte_atomic64_t size; + if (rte_lcore_count() < 2) { + printf("Not enough cores for test_stack_multithreaded, expecting at least 2\n"); + return TEST_SKIPPED; + } + printf("[%s():%u] Running with %u lcores\n", __func__, __LINE__, rte_lcore_count()); - if (rte_lcore_count() < 2) - return 0; - args = rte_malloc(NULL, sizeof(struct test_args) * RTE_MAX_LCORE, 0); if (args == NULL) { printf("[%s():%u] failed to malloc %zu bytes\n",