vlib: only dump 1st buffer in chain by default 99/23199/2
authorBenoît Ganne <bganne@cisco.com>
Mon, 21 Oct 2019 13:13:54 +0000 (15:13 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 5 Nov 2019 10:46:54 +0000 (10:46 +0000)
commitc9ddd2eec1194b6517106d31a6e40238d4aec4e8
treecbaadecf771a69ee14af9e55de989ec90d36f576
parente7ac6d0250664f278e7aa5a483f413bda0432def
vlib: only dump 1st buffer in chain by default

Several nodes include buffers in their traces, but only the 1st. When
formatting the trace we must not try to iterate through all chained
buffers.
Default to display only the 1st buffer.

Type: fix

Change-Id: Ib3c668bbf4ab70ae68eba2ac402c7b7329825b70
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 4354317bf3592d81fcafd94e33b320c3e49f45d3)
src/plugins/vmxnet3/format.c
src/vlib/buffer.c
src/vlib/buffer.h
src/vlib/buffer_funcs.h
src/vnet/buffer.c