From 0930649eb60324eefd593ded4efcf02c449df6bf Mon Sep 17 00:00:00 2001 From: rangan Date: Wed, 13 Apr 2016 17:08:11 +0530 Subject: Opaque index is not populated when ACL is configured. Fixed it. This is inline with ip6_classify.c Change-Id: Ib6e1f6fa3e4669e0a94e4ae2da48eacb240d192b Signed-off-by: rangan --- vnet/vnet/ip/ip_input_acl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'vnet') diff --git a/vnet/vnet/ip/ip_input_acl.c b/vnet/vnet/ip/ip_input_acl.c index fb7255ecd0c..e905ed154a3 100644 --- a/vnet/vnet/ip/ip_input_acl.c +++ b/vnet/vnet/ip/ip_input_acl.c @@ -231,12 +231,13 @@ ip_inacl_inline (vlib_main_t * vm, table_index0 = vnet_buffer(b0)->l2_classify.table_index; e0 = 0; t0 = 0; - vnet_get_config_data (am->vnet_config_main[tid], &vnet_buffer(b0)->ip.current_config_index, &next0, /* # bytes of config data */ 0); + vnet_buffer(b0)->l2_classify.opaque_index = ~0; + if (PREDICT_TRUE(table_index0 != ~0)) { hash0 = vnet_buffer(b0)->l2_classify.hash; @@ -246,6 +247,8 @@ ip_inacl_inline (vlib_main_t * vm, now); if (e0) { + vnet_buffer(b0)->l2_classify.opaque_index + = e0->opaque_index; vlib_buffer_advance (b0, e0->advance); next0 = (e0->next_index < n_next_nodes)? @@ -290,6 +293,8 @@ ip_inacl_inline (vlib_main_t * vm, (t0, (u8 *) h0, hash0, now); if (e0) { + vnet_buffer(b0)->l2_classify.opaque_index + = e0->opaque_index; vlib_buffer_advance (b0, e0->advance); next0 = (e0->next_index < n_next_nodes)? e0->next_index:next0; -- cgit 1.2.3-korg