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
tile: fix build
[dpdk.git]
/
app
/
test
/
test_lpm6.c
diff --git
a/app/test/test_lpm6.c
b/app/test/test_lpm6.c
index
9545982
..
61134f7
100644
(file)
--- a/
app/test/test_lpm6.c
+++ b/
app/test/test_lpm6.c
@@
-40,7
+40,7
@@
#include <rte_lpm6.h>
#include "test.h"
#include <rte_lpm6.h>
#include "test.h"
-#include "test_lpm6_
routes
.h"
+#include "test_lpm6_
data
.h"
#define TEST_LPM_ASSERT(cond) do { \
if (!(cond)) { \
#define TEST_LPM_ASSERT(cond) do { \
if (!(cond)) { \
@@
-113,8
+113,6
@@
rte_lpm6_test tests6[] = {
};
#define NUM_LPM6_TESTS (sizeof(tests6)/sizeof(tests6[0]))
};
#define NUM_LPM6_TESTS (sizeof(tests6)/sizeof(tests6[0]))
-#define RTE_LPM6_TBL24_NUM_ENTRIES (1 << 24)
-#define RTE_LPM6_LOOKUP_SUCCESS 0x04000000
#define MAX_DEPTH 128
#define MAX_RULES 1000000
#define NUMBER_TBL8S (1 << 16)
#define MAX_DEPTH 128
#define MAX_RULES 1000000
#define NUMBER_TBL8S (1 << 16)
@@
-1599,6
+1597,9
@@
test25(void)
TEST_LPM_ASSERT(status == 0);
}
TEST_LPM_ASSERT(status == 0);
}
+ /* generate large IPS table and expected next_hops */
+ generate_large_ips_table(1);
+
for (i = 0; i < 100000; i++) {
memcpy(ip, large_ips_table[i].ip, 16);
next_hop_expected = large_ips_table[i].next_hop;
for (i = 0; i < 100000; i++) {
memcpy(ip, large_ips_table[i].ip, 16);
next_hop_expected = large_ips_table[i].next_hop;
@@
-1766,8
+1767,4
@@
test_lpm6(void)
return global_status;
}
return global_status;
}
-static struct test_command lpm6_cmd = {
- .command = "lpm6_autotest",
- .callback = test_lpm6,
-};
-REGISTER_TEST_COMMAND(lpm6_cmd);
+REGISTER_TEST_COMMAND(lpm6_autotest, test_lpm6);