aboutsummaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-10-28 20:30:15 +0200
committerDave Barach <openvpp@barachs.net>2016-11-01 21:34:05 +0000
commit2231150b52b58c4114f8520cde8b26df2761e064 (patch)
treef4f5e5dcd4608bc94f02dabb6aa480fa411b85b8 /vlib
parent3dffb1e4c628f0698e369d1cbb3cb2068a3a698c (diff)
feature: add new feature handling code and device-input features
Signed-off-by: Damjan Marion <damarion@cisco.com> Change-Id: I010ecde93863dbdad84b993cd3680a5446db59b5
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/node.c1
-rw-r--r--vlib/vlib/node.h3
2 files changed, 4 insertions, 0 deletions
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];
}