summaryrefslogtreecommitdiffstats
path: root/src/vnet/feature/feature.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-04-09 20:59:53 +0200
committerDamjan Marion <damarion@cisco.com>2018-04-09 21:09:21 +0200
commit13adc3d48d562b13422259d8c7ac411fb43c7e8b (patch)
tree2b2e379fbd0c964a0773a3aa42ad6ee9b0cbf368 /src/vnet/feature/feature.c
parent87dad11c8717735479e57cf6c065c7a7963c3aa3 (diff)
features: don't break linked list, create separate one for arc
We need to keep original linked list so destructire can remove entries. Change-Id: I5ff5ca0e1a417d88707255207725bba46433c943 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/feature/feature.c')
-rw-r--r--src/vnet/feature/feature.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/feature/feature.c b/src/vnet/feature/feature.c
index 89a1951663e..97100049b86 100644
--- a/src/vnet/feature/feature.c
+++ b/src/vnet/feature/feature.c
@@ -75,7 +75,7 @@ vnet_feature_init (vlib_main_t * vm)
arc_index = areg->feature_arc_index;
next = freg->next;
- freg->next = fm->next_feature_by_arc[arc_index];
+ freg->next_in_arc = fm->next_feature_by_arc[arc_index];
fm->next_feature_by_arc[arc_index] = freg;
/* next */
@@ -110,7 +110,7 @@ vnet_feature_init (vlib_main_t * vm)
{
hash_set_mem (fm->next_feature_by_name[arc_index],
freg->node_name, pointer_to_uword (freg));
- freg = freg->next;
+ freg = freg->next_in_arc;
}
/* next */
@@ -273,7 +273,7 @@ show_features_command_fn (vlib_main_t * vm,
while (freg)
{
vlib_cli_output (vm, " %s\n", freg->node_name);
- freg = freg->next;
+ freg = freg->next_in_arc;
}