From fcdade1f8721da90017313bb9cb8a2326846d211 Mon Sep 17 00:00:00 2001 From: Zhiyong Yang Date: Mon, 22 Jul 2019 04:50:32 -0400 Subject: gtpu: fix missing trace issue Type: fix Change-Id: I1e1c39452edd94712455d102a6faad58bc7f66ff Signed-off-by: Zhiyong Yang --- src/plugins/gtpu/gtpu_encap.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') diff --git a/src/plugins/gtpu/gtpu_encap.c b/src/plugins/gtpu/gtpu_encap.c index d102a35eef9..ec33e1e4487 100644 --- a/src/plugins/gtpu/gtpu_encap.c +++ b/src/plugins/gtpu/gtpu_encap.c @@ -470,6 +470,22 @@ gtpu_encap_inline (vlib_main_t * vm, tr->teid = t1->teid; } + if (PREDICT_FALSE(b2->flags & VLIB_BUFFER_IS_TRACED)) + { + gtpu_encap_trace_t *tr = + vlib_add_trace (vm, node, b2, sizeof (*tr)); + tr->tunnel_index = t2 - gtm->tunnels; + tr->teid = t2->teid; + } + + if (PREDICT_FALSE(b3->flags & VLIB_BUFFER_IS_TRACED)) + { + gtpu_encap_trace_t *tr = + vlib_add_trace (vm, node, b3, sizeof (*tr)); + tr->tunnel_index = t3 - gtm->tunnels; + tr->teid = t3->teid; + } + vlib_validate_buffer_enqueue_x4 (vm, node, next_index, to_next, n_left_to_next, bi0, bi1, bi2, bi3, -- cgit 1.2.3-korg