From f264f0831f2106cf5f5436bf6b08c45a6c86f2f5 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 30 May 2018 00:03:34 +0200 Subject: bonding: fix packet trace in bond-input Change-Id: I00fc4a4553dabed7ef099227b8253ed4916ea5e4 Signed-off-by: Damjan Marion --- src/vnet/bonding/node.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/vnet/bonding/node.c b/src/vnet/bonding/node.c index 7d2acf7d0f7..9479fe98dd0 100644 --- a/src/vnet/bonding/node.c +++ b/src/vnet/bonding/node.c @@ -331,15 +331,11 @@ VLIB_NODE_FN (bond_input_node) (vlib_main_t * vm, sw_if_index = sw_if_indices; next = nexts; bond_packet_trace_t *t0; - uword n_trace = vlib_get_trace_count (vm, node); - while (n_left && n_trace) + while (n_left) { if (PREDICT_FALSE (b[0]->flags & VLIB_BUFFER_IS_TRACED)) { - vlib_trace_buffer (vm, node, next[0], b[0], - 0 /* follow_chain */ ); - vlib_set_trace_count (vm, node, --n_trace); t0 = vlib_add_trace (vm, node, b[0], sizeof (*t0)); t0->sw_if_index = sw_if_index[0]; clib_memcpy (&t0->ethernet, vlib_buffer_get_current (b[0]), -- cgit 1.2.3-korg