summaryrefslogtreecommitdiffstats
path: root/src/vnet/bier/bier_drop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/bier/bier_drop.c')
-rw-r--r--src/vnet/bier/bier_drop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/bier/bier_drop.c b/src/vnet/bier/bier_drop.c
index da6d5668c7a..fa70841c1fc 100644
--- a/src/vnet/bier/bier_drop.c
+++ b/src/vnet/bier/bier_drop.c
@@ -62,6 +62,9 @@ bier_drop (vlib_main_t * vm,
u32 *buffers = vlib_frame_vector_args (frame);
uword n_packets = frame->n_vectors;
+ if (node->flags & VLIB_NODE_FLAG_TRACE)
+ bier_drop_trace (vm, node, frame);
+
vlib_error_drop_buffers (vm, node, buffers,
/* stride */ 1,
n_packets,
@@ -69,9 +72,6 @@ bier_drop (vlib_main_t * vm,
0, // bier_input_node.index,
0);
- if (node->flags & VLIB_NODE_FLAG_TRACE)
- bier_drop_trace (vm, node, frame);
-
return n_packets;
}