Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
stats: counters data model
[vpp.git]
/
src
/
vlib
/
node.h
diff --git
a/src/vlib/node.h
b/src/vlib/node.h
index
f7155ae
..
6b9a2df
100644
(file)
--- a/
src/vlib/node.h
+++ b/
src/vlib/node.h
@@
-116,6
+116,7
@@
typedef struct _vlib_node_registration
/* Error strings indexed by error code for this node. */
char **error_strings;
/* Error strings indexed by error code for this node. */
char **error_strings;
+ vl_counter_t *error_counters;
/* Buffer format/unformat for this node. */
format_function_t *format_buffer;
/* Buffer format/unformat for this node. */
format_function_t *format_buffer;
@@
-323,8
+324,8
@@
typedef struct vlib_node_t
u32 error_heap_handle;
u32 error_heap_index;
u32 error_heap_handle;
u32 error_heap_index;
- /*
Error strings indexed by erro
r code for this node. */
-
char **error_string
s;
+ /*
Counter structures indexed by counte
r code for this node. */
+
vl_counter_t *error_counter
s;
/* Vector of next node names.
Only used before next_nodes array is initialized. */
/* Vector of next node names.
Only used before next_nodes array is initialized. */