aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dpo
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-10-08 06:08:59 +0000
committerNeale Ranns <nranns@cisco.com>2018-10-08 08:14:57 +0000
commit2fd4b56aea5833a4752525d58cac335909190e9c (patch)
treefe40694cf874b0d93b7c0a56c79776fd7a684a77 /src/vnet/dpo
parent1502fc303b7d98caafa67f182502771d76fba7f2 (diff)
replicate trace fix
Change-Id: I785ecadbf30812a500629870aa717e64f4cf0cdd Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/dpo')
-rw-r--r--src/vnet/dpo/replicate_dpo.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vnet/dpo/replicate_dpo.c b/src/vnet/dpo/replicate_dpo.c
index 8c8206c4a0c..6742bff41aa 100644
--- a/src/vnet/dpo/replicate_dpo.c
+++ b/src/vnet/dpo/replicate_dpo.c
@@ -695,11 +695,15 @@ replicate_inline (vlib_main_t * vm,
next0 = dpo0->dpoi_next_node;
vnet_buffer (c0)->ip.adj_index[VLIB_TX] = dpo0->dpoi_index;
- if (PREDICT_FALSE(c0->flags & VLIB_BUFFER_IS_TRACED))
+ if (PREDICT_FALSE(b0->flags & VLIB_BUFFER_IS_TRACED))
{
replicate_trace_t *t;
- vlib_trace_buffer (vm, node, next0, c0, 0);
+ if (c0 != b0)
+ {
+ vlib_buffer_copy_trace_flag (vm, b0, ci0);
+ VLIB_BUFFER_TRACE_TRAJECTORY_INIT (c0);
+ }
t = vlib_add_trace (vm, node, c0, sizeof (*t));
t->rep_index = repi0;
t->dpo = *dpo0;