aboutsummaryrefslogtreecommitdiffstats
path: root/app/test/test_lpm6.c
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-12-08 14:07:29 +0100
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-12-12 15:41:56 +0100
commit3d9b72106bd664b1267533e7278ff817f942e3c6 (patch)
tree52a6964f40e029d55d73bc18208971eff2297891 /app/test/test_lpm6.c
parenta83862b166241910d0474f801cb2e6afa4c6875b (diff)
Imported Upstream version 16.11
Change-Id: I1944c65ddc88a9ad70f8c0eb6731552b84fbcb77 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Diffstat (limited to 'app/test/test_lpm6.c')
-rw-r--r--app/test/test_lpm6.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/test/test_lpm6.c b/app/test/test_lpm6.c
index 0fd0ef71..61134f70 100644
--- a/app/test/test_lpm6.c
+++ b/app/test/test_lpm6.c
@@ -40,7 +40,7 @@
#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)) { \
@@ -1597,6 +1597,9 @@ test25(void)
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;