git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ring: fix build with -Wswitch-enum
[dpdk.git]
/
app
/
test
/
test_lpm.c
diff --git
a/app/test/test_lpm.c
b/app/test/test_lpm.c
index
e969fe0
..
3a3fd09
100644
(file)
--- a/
app/test/test_lpm.c
+++ b/
app/test/test_lpm.c
@@
-64,7
+64,6
@@
rte_lpm_test tests[] = {
test18
};
test18
};
-#define NUM_LPM_TESTS (sizeof(tests)/sizeof(tests[0]))
#define MAX_DEPTH 32
#define MAX_RULES 256
#define NUMBER_TBL8S 256
#define MAX_DEPTH 32
#define MAX_RULES 256
#define NUMBER_TBL8S 256
@@
-1276,7
+1275,7
@@
test_lpm(void)
unsigned i;
int status, global_status = 0;
unsigned i;
int status, global_status = 0;
- for (i = 0; i <
NUM_LPM_TESTS
; i++) {
+ for (i = 0; i <
RTE_DIM(tests)
; i++) {
status = tests[i]();
if (status < 0) {
printf("ERROR: LPM Test %u: FAIL\n", i);
status = tests[i]();
if (status < 0) {
printf("ERROR: LPM Test %u: FAIL\n", i);