From: rangan Date: Wed, 13 Apr 2016 11:38:11 +0000 (+0530) Subject: Opaque index is not populated when ACL is configured. Fixed it. X-Git-Tag: v16.06-rc1~160 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F775%2F2;p=vpp.git 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 --- 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;