X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvlib%2Ferror.h;h=b5cc264b60dd5e2424f1fcdc909bfa5dc743590a;hb=ceed1e3b816ebcf103b07e5a2dd004aabb2c4145;hp=2bffc6b9367ec7adaf1a251a0ae57b29bb9c4a80;hpb=5cfe45211ac7977ab9bf07b817fe9a5d00226eb3;p=vpp.git diff --git a/src/vlib/error.h b/src/vlib/error.h index 2bffc6b9367..b5cc264b60d 100644 --- a/src/vlib/error.h +++ b/src/vlib/error.h @@ -56,7 +56,8 @@ typedef struct char *name; char *desc; enum vl_counter_severity_e severity; -} vl_counter_t; + u32 stats_entry_index; +} vlib_error_desc_t; typedef struct { @@ -68,14 +69,17 @@ typedef struct /* Counter structures in heap. Heap index indexes counter vector. */ - vl_counter_t *counters_heap; + vlib_error_desc_t *counters_heap; + + /* stats segment entry index */ + u32 stats_err_entry_index; } vlib_error_main_t; /* Per node error registration. */ -void vlib_register_errors (struct vlib_main_t *vm, - u32 node_index, +void vlib_register_errors (struct vlib_main_t *vm, u32 node_index, u32 n_errors, char *error_strings[], - vl_counter_t counters[]); + vlib_error_desc_t counters[]); +void vlib_unregister_errors (struct vlib_main_t *vm, u32 node_index); unformat_function_t unformat_vlib_error;