aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2021-03-10 12:52:53 +0100
committerDamjan Marion <dmarion@me.com>2021-05-06 11:10:55 +0000
commitf09d655101d2400df91d2a388168b925eea0dc01 (patch)
tree7a151ef2d7e723b72ed211955bab8940a5ee9fe8 /src/vnet
parent36f7a6aeb021a549f2d684868303c9891bc0dd00 (diff)
memif: add severity to counters
Also rename counters in stat segment to make them more filesystem friendly. Type: improvement Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I8a3f3ec318931f5475fcb181f8b4a079a1fa4b9c Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/interface.c7
-rw-r--r--src/vnet/interface.h1
2 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/interface.c b/src/vnet/interface.c
index 32fb1f2e64a..1d59a96219f 100644
--- a/src/vnet/interface.c
+++ b/src/vnet/interface.c
@@ -792,10 +792,9 @@ setup_tx_node (vlib_main_t * vm,
n->format_trace = dev_class->format_tx_trace;
- /// XXX: Update this to use counter structure
- vlib_register_errors (vm, node_index,
- dev_class->tx_function_n_errors,
- dev_class->tx_function_error_strings, 0);
+ vlib_register_errors (vm, node_index, dev_class->tx_function_n_errors,
+ dev_class->tx_function_error_strings,
+ dev_class->tx_function_error_counters);
}
static void
diff --git a/src/vnet/interface.h b/src/vnet/interface.h
index 70f51cd5837..744496cdd5d 100644
--- a/src/vnet/interface.h
+++ b/src/vnet/interface.h
@@ -229,6 +229,7 @@ typedef struct _vnet_device_class
/* Error strings indexed by error code for this node. */
char **tx_function_error_strings;
+ vl_counter_t *tx_function_error_counters;
/* Number of error codes used by this node. */
u32 tx_function_n_errors;