X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_lpm6.c;h=0d664546fa471b4ba8e5671e6c3d38178310ae0d;hb=e6cf7bee1c77a0f321cea3494a106bfa5de6f53c;hp=670aadb40eb341ac9ebae121f10f678b8e2c23a0;hpb=a9de470cc7c0649221e156fc5f30a2dbdfe7c166;p=dpdk.git diff --git a/app/test/test_lpm6.c b/app/test/test_lpm6.c index 670aadb40e..0d664546fa 100644 --- a/app/test/test_lpm6.c +++ b/app/test/test_lpm6.c @@ -85,7 +85,6 @@ rte_lpm6_test tests6[] = { test28, }; -#define NUM_LPM6_TESTS (sizeof(tests6)/sizeof(tests6[0])) #define MAX_DEPTH 128 #define MAX_RULES 1000000 #define NUMBER_TBL8S (1 << 16) @@ -1780,7 +1779,7 @@ test_lpm6(void) unsigned i; int status = -1, global_status = 0; - for (i = 0; i < NUM_LPM6_TESTS; i++) { + for (i = 0; i < RTE_DIM(tests6); i++) { printf("# test %02d\n", i); status = tests6[i]();