X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_ring_perf.c;h=320c20cd2cb4c0918bdf207372f7cc9ca49f9ee6;hb=dd0eedb1cfcf0cb7423d859177c5bc6f931eaf8a;hp=9ec69329e351499a43fbd7daa661a014ee9c20ee;hpb=3031749c2df04a63cdcef186dcce3781e61436e8;p=dpdk.git diff --git a/app/test/test_ring_perf.c b/app/test/test_ring_perf.c index 9ec69329e3..320c20cd2c 100644 --- a/app/test/test_ring_perf.c +++ b/app/test/test_ring_perf.c @@ -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; @@ -381,7 +381,7 @@ test_bulk_enqueue_dequeue(void) } } -int +static int test_ring_perf(void) { struct lcore_pair cores; @@ -413,3 +413,5 @@ test_ring_perf(void) } return 0; } + +REGISTER_TEST_COMMAND(ring_perf_autotest, test_ring_perf);