aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKingwel Xie <kingwel.xie@ericsson.com>2018-10-10 21:03:10 -0400
committerDamjan Marion <dmarion@me.com>2018-10-25 10:10:14 +0000
commit2fab01ee0f9b406584272968863eee16a3bb1fb9 (patch)
treeb86267e3e685ef058a0af14a5f8e3404b86d84d3
parent8797168fe2f4fd32d241126181ad0d06c62c4eb4 (diff)
buffer trace is broken in ipsec-output. copy it from node->flags to frame->frame_flags
Change-Id: I56b573b5da04a27766bcbcafbd5438555424f2e7 Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
-rw-r--r--src/vnet/ipsec/ipsec_output.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ipsec_output.c b/src/vnet/ipsec/ipsec_output.c
index 3a20d512f60..e020f2a6532 100644
--- a/src/vnet/ipsec/ipsec_output.c
+++ b/src/vnet/ipsec/ipsec_output.c
@@ -385,6 +385,11 @@ ipsec_output_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
last_next_node_index = next_node_index;
f = vlib_get_frame_to_node (vm, next_node_index);
+
+ /* frame->frame_flags, copy it from node */
+ /* Copy trace flag from next_frame and from runtime. */
+ f->frame_flags |= node->flags & VLIB_NODE_FLAG_TRACE;
+
to_next = vlib_frame_vector_args (f);
}