diff options
author | Steven Luong <sluong@cisco.com> | 2019-08-29 09:50:28 -0700 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-09-27 09:38:51 +0000 |
commit | 7f85aecb5c481fda75e4c87a7d80a1fd47f07046 (patch) | |
tree | 8b8d84c965a708929317a7fb9ccb0774c5a1da73 /src | |
parent | 154e4a6cb75df40093540e60ecea8352ca00e479 (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
(cherry picked from commit 977c1dec69bab72dcae0c62578be7fc0892e897b)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lacp/node.c | 7 |
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); |