aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrangan <rangan@cisco.com>2016-04-13 17:08:11 +0530
committerGerrit Code Review <gerrit@fd.io>2016-04-14 14:00:02 +0000
commit0930649eb60324eefd593ded4efcf02c449df6bf (patch)
treed262c8198604a4a47a1a11a2a3d9f57b21a67a6f
parent25fd944a088b4bcadf699f46c66d5042af9a5242 (diff)
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 <rangan@cisco.com>
-rw-r--r--vnet/vnet/ip/ip_input_acl.c7
1 files changed, 6 insertions, 1 deletions
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;