From: Michael Santana Date: Mon, 29 Jul 2019 15:18:34 +0000 (-0400) Subject: test/table: decrease memory requirement X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=168fd260d5c90e44a869676a112521f229b70044;p=dpdk.git test/table: decrease memory requirement This patch reduces the memory footprint of tables for the unit test. Lower memory footprint means the test now passes when trying to allocate the tables. This patch is mainly to make table_autotest pass in CI. Signed-off-by: Michael Santana Acked-by: Cristian Dumitrescu --- diff --git a/app/test/test_table_tables.c b/app/test/test_table_tables.c index 20df2e9225..21c4086c23 100644 --- a/app/test/test_table_tables.c +++ b/app/test/test_table_tables.c @@ -464,7 +464,7 @@ test_table_lpm_ipv6(void) struct rte_table_lpm_ipv6_params lpm_params = { .name = "LPM", .n_rules = 1 << 24, - .number_tbl8s = 1 << 21, + .number_tbl8s = 1 << 18, .entry_unique_size = entry_size, .offset = APP_METADATA_OFFSET(32) }; @@ -492,7 +492,7 @@ test_table_lpm_ipv6(void) if (table != NULL) return -4; - lpm_params.number_tbl8s = 1 << 21; + lpm_params.number_tbl8s = 1 << 18; lpm_params.entry_unique_size = 0; table = rte_table_lpm_ipv6_ops.f_create(&lpm_params, 0, entry_size); if (table != NULL)