A new rte_lpm_config structure is used so LPM library will allocate exactly the amount of memory which is necessary to hold application?s rules.
Michal Kobylinski (2): lpm: added a new rte_lpm_config structure for ipv4 examples: update to use new rte_lpm_config structure for ipv4 app/test/test_func_reentrancy.c | 9 +- app/test/test_lpm.c | 145 ++++++++++++++++++++---- app/test/test_mp_secondary.c | 7 +- app/test/test_table_combined.c | 2 + app/test/test_table_tables.c | 2 + doc/guides/rel_notes/release_16_04.rst | 5 + examples/ip_fragmentation/main.c | 7 +- examples/ip_reassembly/main.c | 7 +- examples/l3fwd-power/main.c | 10 +- examples/l3fwd-vf/main.c | 10 +- examples/l3fwd/l3fwd_lpm.c | 9 +- examples/load_balancer/init.c | 8 +- examples/performance-thread/l3fwd-thread/main.c | 8 +- lib/librte_lpm/rte_lpm.c | 51 ++++++--- lib/librte_lpm/rte_lpm.h | 23 +++- lib/librte_table/rte_table_lpm.c | 12 +- lib/librte_table/rte_table_lpm.h | 6 + 17 files changed, 262 insertions(+), 59 deletions(-) -- 1.9.1