summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorDave Barach <dbarach@cisco.com>2016-04-07 10:16:33 -0400
committerDave Barach <dbarach@cisco.com>2016-04-07 10:17:31 -0400
commit2fa6beff5726ecb7c863d0027395ed63dc4831ca (patch)
tree02f082ee8afba7cd1a3c3c399605441aa9637fa3 /vnet
parenta25bd1cae44e3a09584366c161cbc6beebd3d2c4 (diff)
Classify node should pay attention to dynamically-added arcs
Change-Id: I65bc03dbb5fedfc75f4ce7153eae116fe599730c Signed-off-by: Dave Barach <dbarach@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/classify/ip_classify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/classify/ip_classify.c b/vnet/vnet/classify/ip_classify.c
index eff447bcc74..ba5269e2a62 100644
--- a/vnet/vnet/classify/ip_classify.c
+++ b/vnet/vnet/classify/ip_classify.c
@@ -237,7 +237,7 @@ ip_classify_inline (vlib_main_t * vm,
vnet_buffer(b0)->l2_classify.opaque_index
= e0->opaque_index;
vlib_buffer_advance (b0, e0->advance);
- next0 = (e0->next_index < IP_LOOKUP_N_NEXT)?
+ next0 = (e0->next_index < node->n_next_nodes)?
e0->next_index:next0;
hits++;
}
@@ -264,7 +264,7 @@ ip_classify_inline (vlib_main_t * vm,
vnet_buffer(b0)->l2_classify.opaque_index
= e0->opaque_index;
vlib_buffer_advance (b0, e0->advance);
- next0 = (e0->next_index < IP_LOOKUP_N_NEXT)?
+ next0 = (e0->next_index < node->n_next_nodes)?
e0->next_index:next0;
hits++;
chain_hits++;