net/sfc: support API to negotiate delivery of Rx metadata
[dpdk.git] / app / test / test_stack.c
index 463460c..bc38961 100644 (file)
@@ -4,7 +4,6 @@
 
 #include <string.h>
 
-#include <rte_atomic.h>
 #include <rte_lcore.h>
 #include <rte_malloc.h>
 #include <rte_random.h>
@@ -328,7 +327,7 @@ test_stack_multithreaded(uint32_t flags)
 
        thread_test_args.s = s;
 
-       if (rte_eal_mp_remote_launch(stack_thread_push_pop, NULL, CALL_MASTER))
+       if (rte_eal_mp_remote_launch(stack_thread_push_pop, NULL, CALL_MAIN))
                rte_panic("Failed to launch tests\n");
 
        RTE_LCORE_FOREACH(lcore_id) {
@@ -373,7 +372,11 @@ test_stack(void)
 static int
 test_lf_stack(void)
 {
+#if defined(RTE_STACK_LF_SUPPORTED)
        return __test_stack(RTE_STACK_F_LF);
+#else
+       return TEST_SKIPPED;
+#endif
 }
 
 REGISTER_TEST_COMMAND(stack_autotest, test_stack);