mbuf: remove rte_ctrlmbuf
[dpdk.git] / app / test / test_red.c
index bb62aba..262df72 100644 (file)
@@ -43,8 +43,6 @@
 
 #include "test.h"
 
-#ifdef RTE_LIBRTE_SCHED
-
 #include <rte_red.h>
 
 #ifdef __INTEL_COMPILER
@@ -1861,7 +1859,8 @@ test_invalid_parameters(void)
        return 0;
 }
 
-int test_red(void)
+static int
+test_red(void)
 {
        uint32_t num_tests = 0;
        uint32_t num_pass = 0;
@@ -1883,13 +1882,8 @@ int test_red(void)
        return (ret);
 }
 
-#else
-
-int
-test_red(void)
-{
-       printf("The SCHED library is not included in this build\n");
-       return 0;
-}
-
-#endif
+static struct test_command red_cmd = {
+       .command = "red_autotest",
+       .callback = test_red,
+};
+REGISTER_TEST_COMMAND(red_cmd);