X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Favf%2Fformat.c;h=bc2b94ecc46c66cfeaa2fcb63487198ac10f4c4e;hb=e5d34919b;hp=4c391a807603d908cf05a91c76b7f80d084e9704;hpb=1e75c6cffe08886509e52ff496b96b8d32d76d88;p=vpp.git diff --git a/src/plugins/avf/format.c b/src/plugins/avf/format.c index 4c391a80760..bc2b94ecc46 100644 --- a/src/plugins/avf/format.c +++ b/src/plugins/avf/format.c @@ -107,9 +107,10 @@ format_avf_device (u8 * s, va_list * args) s = format (s, "\n%Uerror %U", format_white_space, indent, format_clib_error, ad->error); -#define _(c) if (ad->eth_stats.c) \ +#define _(c) if (ad->eth_stats.c - ad->last_cleared_eth_stats.c) \ a = format (a, "\n%U%-20U %u", format_white_space, indent + 2, \ - format_c_identifier, #c, ad->eth_stats.c); + format_c_identifier, #c, \ + ad->eth_stats.c - ad->last_cleared_eth_stats.c); foreach_virtchnl_eth_stats; #undef _ if (a) @@ -130,9 +131,9 @@ format_avf_input_trace (u8 * s, va_list * args) u32 indent = format_get_indent (s); int i = 0; - s = format (s, "avf: %v (%d) next-node %U", - hi->name, t->hw_if_index, format_vlib_next_node_name, vm, - node->index, t->next_index); + s = format (s, "avf: %v (%d) qid %u next-node %U", + hi->name, t->hw_if_index, t->qid, format_vlib_next_node_name, + vm, node->index, t->next_index); do {