Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ip: Use .api declarative counters for ICMP.
[vpp.git]
/
src
/
vnet
/
ip
/
icmp6.c
diff --git
a/src/vnet/ip/icmp6.c
b/src/vnet/ip/icmp6.c
index
f92f31c
..
4cabc0e
100644
(file)
--- a/
src/vnet/ip/icmp6.c
+++ b/
src/vnet/ip/icmp6.c
@@
-127,12
+127,6
@@
format_icmp6_input_trace (u8 * s, va_list * va)
return s;
}
return s;
}
-static char *icmp_error_strings[] = {
-#define _(f,s) s,
- foreach_icmp6_error
-#undef _
-};
-
typedef enum
{
ICMP_INPUT_NEXT_PUNT,
typedef enum
{
ICMP_INPUT_NEXT_PUNT,
@@
-250,8
+244,8
@@
VLIB_REGISTER_NODE (ip6_icmp_input_node) = {
.format_trace = format_icmp6_input_trace,
.format_trace = format_icmp6_input_trace,
- .n_errors =
ARRAY_LEN (icmp_error_strings)
,
- .error_
strings = icmp_error_string
s,
+ .n_errors =
ICMP6_N_ERROR
,
+ .error_
counters = icmp6_error_counter
s,
.n_next_nodes = 1,
.next_nodes = {
.n_next_nodes = 1,
.next_nodes = {
@@
-439,8
+433,8
@@
VLIB_REGISTER_NODE (ip6_icmp_error_node) = {
.name = "ip6-icmp-error",
.vector_size = sizeof (u32),
.name = "ip6-icmp-error",
.vector_size = sizeof (u32),
- .n_errors =
ARRAY_LEN (icmp_error_strings)
,
- .error_
strings = icmp_error_string
s,
+ .n_errors =
ICMP6_N_ERROR
,
+ .error_
counters = icmp6_error_counter
s,
.n_next_nodes = IP6_ICMP_ERROR_N_NEXT,
.next_nodes = {
.n_next_nodes = IP6_ICMP_ERROR_N_NEXT,
.next_nodes = {