aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lacp/node.c
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-08-29 09:50:28 -0700
committerSteven Luong <sluong@cisco.com>2019-08-29 09:54:31 -0700
commit977c1dec69bab72dcae0c62578be7fc0892e897b (patch)
tree166e85b586511ec8ea87abba5b1799bc71af2a39 /src/plugins/lacp/node.c
parente7eba48937c52478d3844745ebb63a4b9ce8d681 (diff)
lacp: continuing input packet trace from device driver
lacp gets the packet from the device driver. Let's continue the input packet trace's trajectory instead of restarting it in lacp-input. Type: fix Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: I4d4537e050742a23f74287086d38d39673ebd60f
Diffstat (limited to 'src/plugins/lacp/node.c')
-rw-r--r--src/plugins/lacp/node.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/lacp/node.c b/src/plugins/lacp/node.c
index 1a5cb4500fb..4f78880c741 100644
--- a/src/plugins/lacp/node.c
+++ b/src/plugins/lacp/node.c
@@ -68,7 +68,6 @@ lacp_node_fn (vlib_main_t * vm,
{
u32 n_left_from, *from;
lacp_input_trace_t *t0;
- uword n_trace = vlib_get_trace_count (vm, node);
from = vlib_frame_vector_args (frame); /* array of buffer indices */
n_left_from = frame->n_vectors; /* number of buffer indices */
@@ -89,12 +88,10 @@ lacp_node_fn (vlib_main_t * vm,
b0->error = node->errors[error0];
/* If this pkt is traced, snapshoot the data */
- if (PREDICT_FALSE (n_trace > 0))
+ if (PREDICT_FALSE (node->flags & VLIB_NODE_FLAG_TRACE))
{
int len;
- vlib_trace_buffer (vm, node, next0, b0,
- /* follow_chain */ 0);
- vlib_set_trace_count (vm, node, --n_trace);
+
t0 = vlib_add_trace (vm, node, b0, sizeof (*t0));
len = (b0->current_length < sizeof (t0->pkt))
? b0->current_length : sizeof (t0->pkt);