From 2231150b52b58c4114f8520cde8b26df2761e064 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Fri, 28 Oct 2016 20:30:15 +0200 Subject: feature: add new feature handling code and device-input features Signed-off-by: Damjan Marion Change-Id: I010ecde93863dbdad84b993cd3680a5446db59b5 --- vlib/vlib/node.c | 1 + vlib/vlib/node.h | 3 +++ 2 files changed, 4 insertions(+) (limited to 'vlib') diff --git a/vlib/vlib/node.c b/vlib/vlib/node.c index 23f7ea0239e..118fabe749d 100644 --- a/vlib/vlib/node.c +++ b/vlib/vlib/node.c @@ -424,6 +424,7 @@ register_node (vlib_main_t * vm, vlib_node_registration_t * r) rt->n_next_nodes = r->n_next_nodes; rt->next_frame_index = vec_len (nm->next_frames); + rt->feature_arc_index = ~0; vec_resize (nm->next_frames, rt->n_next_nodes); for (i = 0; i < rt->n_next_nodes; i++) diff --git a/vlib/vlib/node.h b/vlib/vlib/node.h index b624e9d636d..251ee606d20 100644 --- a/vlib/vlib/node.h +++ b/vlib/vlib/node.h @@ -465,6 +465,9 @@ typedef struct vlib_node_runtime_t /* CPU this node runs on */ u16 cpu_index; + /* Index of feature arc in which the node participates */ + u16 feature_arc_index; + /* Function dependent node-runtime. */ u8 runtime_data[0]; } -- cgit 1.2.3-korg