summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Kotucek <pkotucek@cisco.com>2016-11-29 11:03:37 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-29 18:10:13 +0000
commite2e95ce6550a28a6ba5870c9c550acb619883f1a (patch)
treeb8b92f7508f25f3bbe2eac81be3c852190315b66
parentddff8a4ee423cf76b14278edee75d5fa369300c0 (diff)
span: fix wrong next1 feature index in dual loop
Change-Id: I84e822f46fd1a0b83865073e797ef3ac03280e72 Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
-rw-r--r--vnet/vnet/span/node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vnet/vnet/span/node.c b/vnet/vnet/span/node.c
index 2012283db2b..32d44075958 100644
--- a/vnet/vnet/span/node.c
+++ b/vnet/vnet/span/node.c
@@ -87,9 +87,9 @@ span_node_fn (vlib_main_t * vm,
vlib_buffer_t *b0, *c0;
vlib_buffer_t *b1, *c1;
u32 sw_if_index0;
- u32 next0 = 0; //SPAN_NEXT_ORIG_ETHERNET;
+ u32 next0 = 0;
u32 sw_if_index1;
- u32 next1 = 1; //SPAN_NEXT_ORIG_ETHERNET;
+ u32 next1 = 0;
/* speculatively enqueue b0, b1 to the current next frame */
to_next[0] = bi0 = from[0];
@@ -173,7 +173,7 @@ span_node_fn (vlib_main_t * vm,
u32 bi0;
vlib_buffer_t *b0, *c0;
u32 sw_if_index0;
- u32 next0 = 0; //SPAN_NEXT_ORIG_ETHERNET;
+ u32 next0 = 0;
/* speculatively enqueue b0 to the current next frame */
to_next[0] = bi0 = from[0];