X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_memcpy_perf.c;h=ff3aaaacad35223788f4b769e7f7fbc98442be14;hb=dd0eedb1cfcf0cb7423d859177c5bc6f931eaf8a;hp=f150d8d3e85333ad063d8655b8b67e32a625e425;hpb=2593612db0c7517b21a1bed9311718e7e76c58fe;p=dpdk.git diff --git a/app/test/test_memcpy_perf.c b/app/test/test_memcpy_perf.c index f150d8d3e8..ff3aaaacad 100644 --- a/app/test/test_memcpy_perf.c +++ b/app/test/test_memcpy_perf.c @@ -152,8 +152,8 @@ free_buffers(void) static inline size_t get_rand_offset(size_t uoffset) { - return (((rte_rand() % (LARGE_BUFFER_SIZE - SMALL_BUFFER_SIZE)) & - ~(ALIGNMENT_UNIT - 1)) + uoffset); + return ((rte_rand() % (LARGE_BUFFER_SIZE - SMALL_BUFFER_SIZE)) & + ~(ALIGNMENT_UNIT - 1)) + uoffset; } /* Fill in source and destination addresses. */ @@ -351,8 +351,4 @@ test_memcpy_perf(void) return 0; } -static struct test_command memcpy_perf_cmd = { - .command = "memcpy_perf_autotest", - .callback = test_memcpy_perf, -}; -REGISTER_TEST_COMMAND(memcpy_perf_cmd); +REGISTER_TEST_COMMAND(memcpy_perf_autotest, test_memcpy_perf);