Fix typo in trace trajectory init 42/13942/2
authorDave Barach <dave@barachs.net>
Fri, 3 Aug 2018 13:28:47 +0000 (09:28 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 3 Aug 2018 15:42:45 +0000 (15:42 +0000)
plugin won't compile if VLIB_BUFFER_TRACE_TRAJECTORY is set. The
quad loop was OK, bug in single loop only.

Change-Id: I11262bf6a223680eeac7ed23238ceda425a02c1b
Signed-off-by: Dave Barach <dave@barachs.net>
src/plugins/avf/input.c

index efec723..d11c3cf 100644 (file)
@@ -304,7 +304,7 @@ avf_process_rx_burst (vlib_main_t * vm, vlib_node_runtime_t * node,
       clib_memcpy (vnet_buffer (b[0])->sw_if_index,
                   vnet_buffer (bt)->sw_if_index, 2 * sizeof (u32));
 
-      VLIB_BUFFER_TRACE_TRAJECTORY_INIT (b0);
+      VLIB_BUFFER_TRACE_TRAJECTORY_INIT (b[0]);
 
       /* next */
       rxve += 1;