summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichal Kobylinski <michalx.kobylinski@intel.com>2016-03-17 09:47:25 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-03-18 11:53:42 +0100
commit53efd8ecad2e98e727c19e4b2996a5f9d232f262 (patch)
tree56f715918e0d1405224e7afee6070be97765f770 /examples
parentb3869ebebfb1267d81bc4cdc8b12c0d0d484a03d (diff)
downloaddpdk-53efd8ecad2e98e727c19e4b2996a5f9d232f262.zip
dpdk-53efd8ecad2e98e727c19e4b2996a5f9d232f262.tar.gz
dpdk-53efd8ecad2e98e727c19e4b2996a5f9d232f262.tar.xz
lpm: fix pipeline apps
Updated ip_pipeline app is using new changes from LPM library (Increased number of next hops and added new config structure for LPM IPv4). Fixes: f1f7261838b3 ("lpm: add a new config structure for IPv4") Signed-off-by: Michal Kobylinski <michalx.kobylinski@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/ip_pipeline/pipeline/pipeline_routing_be.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/ip_pipeline/pipeline/pipeline_routing_be.c b/examples/ip_pipeline/pipeline/pipeline_routing_be.c
index 8342b7b..431c636 100644
--- a/examples/ip_pipeline/pipeline/pipeline_routing_be.c
+++ b/examples/ip_pipeline/pipeline/pipeline_routing_be.c
@@ -67,6 +67,10 @@
#define MAC_SRC_DEFAULT 0x112233445566
+#ifndef PIPELINE_ROUTING_LPM_TABLE_NUMBER_TABLE8s
+#define PIPELINE_ROUTING_LPM_TABLE_NUMBER_TABLE8s 256
+#endif
+
struct pipeline_routing {
struct pipeline p;
struct pipeline_routing_params params;
@@ -1284,6 +1288,8 @@ pipeline_routing_init(struct pipeline_params *params,
struct rte_table_lpm_params table_lpm_params = {
.name = p->name,
.n_rules = p_rt->params.n_routes,
+ .number_tbl8s = PIPELINE_ROUTING_LPM_TABLE_NUMBER_TABLE8s,
+ .flags = 0,
.entry_unique_size = sizeof(struct routing_table_entry),
.offset = p_rt->params.ip_hdr_offset +
__builtin_offsetof(struct ipv4_hdr, dst_addr),