crypto-input: fix broken buffer trace issue 79/17079/3
authorKingwel Xie <kingwel.xie@ericsson.com>
Fri, 25 Jan 2019 10:18:51 +0000 (05:18 -0500)
committerDave Barach <openvpp@barachs.net>
Tue, 5 Feb 2019 15:02:53 +0000 (15:02 +0000)
commitb8999b1070ce987dc168ac0776696cc9671132b4
tree7c8769be21e5b69625f7c90cc64aaf00cc89521a
parent623eb5676689f6874716857a1085d0efd4974c4c
crypto-input: fix broken buffer trace issue

dpdk_crypto_input_trace was called before vlib_buffer_enqueue_to_next
then VLIB_FRAME_TRACE of next_frame->flag will be overwritten by
vlib_next_frame_change_ownership(), leading to a broken trace.

now it is working:

Packet 1

00:00:15:654983: dpdk-crypto-input
  dev_id 0 next-index 1
  00:00:15:654999: ip4-lookup
  fib 0 dpo-idx 0 flow hash: 0x00000000
  IPSEC_ESP: 18.1.0.71 -> 18.1.0.241
      tos 0x00, ttl 254, length 168, checksum 0x96ea
......

Change-Id: I73d77c06c11db8911866adb6240b2565b690f469
Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
src/plugins/dpdk/ipsec/crypto_node.c