aboutsummaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
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];
}