From 03f2a015999ed9ba34041afb408a22ea5fe601ff Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Tue, 20 Jul 2021 16:49:13 +0200 Subject: vlib: add format_vnet_buffer_no_chain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add format_vnet_buffer and format_vnet_buffer_no_chain to mirror format_vlib_buffer and format_vlib_buffer_no_chain - format_vnet_buffer used to be the "no chain" version, replace all of its current use with the corresponding format_vnet_buffer_no_chain - add a function to dump vnet buffer details from gdb Type: improvement Change-Id: I143ce845f80e7ef937ea33a557b6e3b5988c5b8f Signed-off-by: Benoît Ganne --- extras/deprecated/ixge/ixge.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'extras/deprecated') diff --git a/extras/deprecated/ixge/ixge.c b/extras/deprecated/ixge/ixge.c index bb91a368488..481db06594e 100644 --- a/extras/deprecated/ixge/ixge.c +++ b/extras/deprecated/ixge/ixge.c @@ -599,9 +599,8 @@ format_ixge_rx_dma_trace (u8 * s, va_list * va) format_white_space, indent, t->after.rx_to_hw.head_address, t->after.rx_to_hw.tail_address); - s = format (s, "\n%Ubuffer 0x%x: %U", - format_white_space, indent, - t->buffer_index, format_vnet_buffer, &t->buffer); + s = format (s, "\n%Ubuffer 0x%x: %U", format_white_space, indent, + t->buffer_index, format_vnet_buffer_no_chain, &t->buffer); s = format (s, "\n%U", format_white_space, indent); @@ -883,9 +882,8 @@ format_ixge_tx_dma_trace (u8 * s, va_list * va) format_white_space, indent, format_ixge_tx_descriptor, &t->descriptor); - s = format (s, "\n%Ubuffer 0x%x: %U", - format_white_space, indent, - t->buffer_index, format_vnet_buffer, &t->buffer); + s = format (s, "\n%Ubuffer 0x%x: %U", format_white_space, indent, + t->buffer_index, format_vnet_buffer_no_chain, &t->buffer); s = format (s, "\n%U", format_white_space, indent); -- cgit 1.2.3-korg