aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/bonding/node.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-05-30 00:03:34 +0200
committerDamjan Marion <damarion@cisco.com>2018-05-30 00:03:55 +0200
commitf264f0831f2106cf5f5436bf6b08c45a6c86f2f5 (patch)
tree06230da94fd70c2754c55375c6b6d2e00b1650ff /src/vnet/bonding/node.c
parent5ffc8858e7f6edaa157dcf78c3acd49ef8d63260 (diff)
bonding: fix packet trace in bond-input
Change-Id: I00fc4a4553dabed7ef099227b8253ed4916ea5e4 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/bonding/node.c')
-rw-r--r--src/vnet/bonding/node.c6
1 files changed, 1 insertions, 5 deletions
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]),