ikev2: add support for custom ipsec-over-udp port
[vpp.git] / src / plugins / avf / format.c
index 4c391a8..bc2b94e 100644 (file)
@@ -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
     {