diff options
author | Neale Ranns <neale@graphiant.com> | 2022-08-09 03:03:29 +0000 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2022-08-11 06:54:16 +0000 |
commit | e22a7041626cf1ebee7534d84068d48e8671a6ab (patch) | |
tree | dc3a7f46c3a4aef4c3af20229d3df18fb5465f8a /src/vnet/ip/ip6_input.c | |
parent | 93688d7341ada44755dc0432de3e3dbaaa8aa111 (diff) |
ip: Use .api declared error counters
Type: improvement
Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I822ead1495edb96ee62e53dc5920aa6c565e3621
Diffstat (limited to 'src/vnet/ip/ip6_input.c')
-rw-r--r-- | src/vnet/ip/ip6_input.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/vnet/ip/ip6_input.c b/src/vnet/ip/ip6_input.c index 01b8f46b4d8..8d89890f999 100644 --- a/src/vnet/ip/ip6_input.c +++ b/src/vnet/ip/ip6_input.c @@ -219,21 +219,13 @@ VLIB_NODE_FN (ip6_input_node) (vlib_main_t * vm, vlib_node_runtime_t * node, return frame->n_vectors; } -#ifndef CLIB_MARCH_VARIANT -char *ip6_error_strings[] = { -#define _(sym,string) string, - foreach_ip6_error -#undef _ -}; -#endif /* CLIB_MARCH_VARIANT */ - /* *INDENT-OFF* */ VLIB_REGISTER_NODE (ip6_input_node) = { .name = "ip6-input", .vector_size = sizeof (u32), .n_errors = IP6_N_ERROR, - .error_strings = ip6_error_strings, + .error_counters = ip6_error_counters, .n_next_nodes = IP6_INPUT_N_NEXT, .next_nodes = { |