diff options
author | rangan <rangan@cisco.com> | 2016-04-15 11:02:32 +0530 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-04-15 11:00:39 +0000 |
commit | 595395d47b71d880d49febae3d06629ba88727d0 (patch) | |
tree | 5607e02c4b5f85a4d604a3ef37483577ae379105 /vnet | |
parent | b92feb6bd3f58c44be32eadfd683a1b2caac5607 (diff) |
Took care of code review comments. Extended the fix to other files.
Change-Id: I24e688884cd5896b317efb53e1d193f7d363715a
Signed-off-by: rangan <rangan@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r-- | vnet/vnet/l2/l2_classify.c | 1 | ||||
-rw-r--r-- | vnet/vnet/l2/l2_input_acl.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/vnet/vnet/l2/l2_classify.c b/vnet/vnet/l2/l2_classify.c index a6c8ebbc1b4..449dea7221d 100644 --- a/vnet/vnet/l2/l2_classify.c +++ b/vnet/vnet/l2/l2_classify.c @@ -275,6 +275,7 @@ l2_classify_node_fn (vlib_main_t * vm, h0 = vlib_buffer_get_current(b0); table_index0 = vnet_buffer(b0)->l2_classify.table_index; e0 = 0; + vnet_buffer(b0)->l2_classify.opaque_index = ~0; if (PREDICT_TRUE(table_index0 != ~0)) { diff --git a/vnet/vnet/l2/l2_input_acl.c b/vnet/vnet/l2/l2_input_acl.c index 77fa8944e9f..49df0f65ce4 100644 --- a/vnet/vnet/l2/l2_input_acl.c +++ b/vnet/vnet/l2/l2_input_acl.c @@ -254,6 +254,7 @@ l2_inacl_node_fn (vlib_main_t * vm, /* Feature bitmap update */ vnet_buffer(b0)->l2.feature_bitmap &= ~L2INPUT_FEAT_ACL; + vnet_buffer(b0)->l2_classify.opaque_index = ~0; /* Determine the next node */ next0 = feat_bitmap_get_next_node_index(msm->feat_next_node_index, vnet_buffer(b0)->l2.feature_bitmap); @@ -267,6 +268,8 @@ l2_inacl_node_fn (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 < ACL_NEXT_INDEX_N_NEXT)? |