aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schultz <andreas.schultz@travelping.com>2020-04-16 16:18:57 +0200
committerFlorin Coras <florin.coras@gmail.com>2020-04-16 16:20:43 +0000
commit063f2b86edafdc17d285bebc7722cad19c885db1 (patch)
treebf0042edc89379850d98a31e3ec84859b1f4e8b8 /src
parent1a0a89770688a37e500f634b68805b1984eccac0 (diff)
udp: fix buffer trace
Type: fix Signed-off-by: Andreas Schultz <andreas.schultz@travelping.com> Change-Id: I774ca50582281cb3cc5e43417e74d178bf4909bd
Diffstat (limited to 'src')
-rw-r--r--src/vnet/udp/udp_input.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vnet/udp/udp_input.c b/src/vnet/udp/udp_input.c
index 95595c394e4..296a874523d 100644
--- a/src/vnet/udp/udp_input.c
+++ b/src/vnet/udp/udp_input.c
@@ -317,14 +317,13 @@ udp46_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
}
done:
+ if (PREDICT_FALSE (node->flags & VLIB_NODE_FLAG_TRACE))
+ udp_trace_buffer (vm, node, b[0], s0, error0);
b += 1;
n_left_from -= 1;
udp_inc_err_counter (err_counters, error0, 1);
-
- if (PREDICT_FALSE (node->flags & VLIB_NODE_FLAG_TRACE))
- udp_trace_buffer (vm, node, b[0], s0, error0);
}
vlib_buffer_free (vm, first_buffer, frame->n_vectors);