tile: fix build
[dpdk.git] / app / test / test_ring_perf.c
index 44dda4d..320c20c 100644 (file)
@@ -253,7 +253,7 @@ static void
 run_on_core_pair(struct lcore_pair *cores,
                lcore_function_t f1, lcore_function_t f2)
 {
-       struct thread_params param1 = {.size = 0}, param2 = {.size = 0};
+       struct thread_params param1 = {0}, param2 = {0};
        unsigned i;
        for (i = 0; i < sizeof(bulk_sizes)/sizeof(bulk_sizes[0]); i++) {
                lcore_count = 0;
@@ -414,8 +414,4 @@ test_ring_perf(void)
        return 0;
 }
 
-static struct test_command ring_perf_cmd = {
-       .command = "ring_perf_autotest",
-       .callback = test_ring_perf,
-};
-REGISTER_TEST_COMMAND(ring_perf_cmd);
+REGISTER_TEST_COMMAND(ring_perf_autotest, test_ring_perf);