aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2016-12-15 15:42:41 +0000
committerDamjan Marion <dmarion.lists@gmail.com>2016-12-19 18:51:34 +0000
commit85bb93ae860148984dc1a495de965c502e01d3bb (patch)
treea539f906d03191249544348e64abbf33edcae293
parent71ce4a4bc5e21a29088ead51c76d7e6a09701678 (diff)
dpdk: fix dpdk-crypto-input packet trace
Change-Id: Ic8073215222e4800c62ac42738e73d5e990806ef Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
-rw-r--r--vnet/vnet/devices/dpdk/ipsec/crypto_node.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/vnet/vnet/devices/dpdk/ipsec/crypto_node.c b/vnet/vnet/devices/dpdk/ipsec/crypto_node.c
index 37d5e5fa205..7b32704ec05 100644
--- a/vnet/vnet/devices/dpdk/ipsec/crypto_node.c
+++ b/vnet/vnet/devices/dpdk/ipsec/crypto_node.c
@@ -76,7 +76,7 @@ format_dpdk_crypto_input_trace (u8 * s, va_list * args)
s = format (s, "dpdk_crypto: cryptodev-id %u queue-pair %u next-index %d",
t->cdev, t->qp, t->next_index);
- s = format (s, "status %u sa-idx %u\n", t->status, t->sa_idx);
+ s = format (s, " status %u sa-idx %u\n", t->status, t->sa_idx);
return s;
}
@@ -142,8 +142,9 @@ dpdk_crypto_dequeue (vlib_main_t * vm, vlib_node_runtime_t * node,
if (PREDICT_FALSE (b0->flags & VLIB_BUFFER_IS_TRACED))
{
- dpdk_crypto_input_trace_t *tr;
- tr = vlib_add_trace (vm, node, b0, sizeof (*tr));
+ vlib_trace_next_frame (vm, node, next0);
+ dpdk_crypto_input_trace_t *tr =
+ vlib_add_trace (vm, node, b0, sizeof (*tr));
tr->cdev = qpd->dev_id;
tr->qp = qpd->qp_id;
tr->status = cop->status;