mbuf: fix performance with 128-byte cache line
[dpdk.git] / app / test / test_per_lcore.c
index 2241ed5..b16449a 100644 (file)
@@ -40,7 +40,6 @@
 #include <rte_memzone.h>
 #include <rte_per_lcore.h>
 #include <rte_launch.h>
-#include <rte_tailq.h>
 #include <rte_eal.h>
 #include <rte_per_lcore.h>
 #include <rte_lcore.h>
@@ -99,7 +98,7 @@ test_per_lcore_delay(__attribute__((unused)) void *arg)
        return 0;
 }
 
-int
+static int
 test_per_lcore(void)
 {
        unsigned lcore_id;
@@ -136,3 +135,9 @@ test_per_lcore(void)
 
        return 0;
 }
+
+static struct test_command per_lcore_cmd = {
+       .command = "per_lcore_autotest",
+       .callback = test_per_lcore,
+};
+REGISTER_TEST_COMMAND(per_lcore_cmd);