Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tcp: fix severity info
[vpp.git]
/
src
/
vnet
/
tcp
/
tcp_input.c
diff --git
a/src/vnet/tcp/tcp_input.c
b/src/vnet/tcp/tcp_input.c
index
3d3272c
..
6546a14
100644
(file)
--- a/
src/vnet/tcp/tcp_input.c
+++ b/
src/vnet/tcp/tcp_input.c
@@
-21,8
+21,8
@@
#include <vnet/session/session.h>
#include <math.h>
#include <vnet/session/session.h>
#include <math.h>
-static
char *tcp_error_string
s[] = {
-#define tcp_error(
n,s) s
,
+static
vlib_error_desc_t tcp_input_error_counter
s[] = {
+#define tcp_error(
f, n, s, d) { #n, d, VL_COUNTER_SEVERITY_##s }
,
#include <vnet/tcp/tcp_error.def>
#undef tcp_error
};
#include <vnet/tcp/tcp_error.def>
#undef tcp_error
};
@@
-1575,7
+1575,7
@@
VLIB_REGISTER_NODE (tcp4_established_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_ESTABLISHED_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_ESTABLISHED_N_NEXT,
.next_nodes =
{
@@
-1594,7
+1594,7
@@
VLIB_REGISTER_NODE (tcp6_established_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_ESTABLISHED_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_ESTABLISHED_N_NEXT,
.next_nodes =
{
@@
-2069,7
+2069,7
@@
VLIB_REGISTER_NODE (tcp4_syn_sent_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_SYN_SENT_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_SYN_SENT_N_NEXT,
.next_nodes =
{
@@
-2088,7
+2088,7
@@
VLIB_REGISTER_NODE (tcp6_syn_sent_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_SYN_SENT_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_SYN_SENT_N_NEXT,
.next_nodes =
{
@@
-2534,7
+2534,7
@@
VLIB_REGISTER_NODE (tcp4_rcv_process_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_RCV_PROCESS_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_RCV_PROCESS_N_NEXT,
.next_nodes =
{
@@
-2553,7
+2553,7
@@
VLIB_REGISTER_NODE (tcp6_rcv_process_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_RCV_PROCESS_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_RCV_PROCESS_N_NEXT,
.next_nodes =
{
@@
-2724,7
+2724,7
@@
VLIB_REGISTER_NODE (tcp4_listen_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_LISTEN_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_LISTEN_N_NEXT,
.next_nodes =
{
@@
-2743,7
+2743,7
@@
VLIB_REGISTER_NODE (tcp6_listen_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_LISTEN_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_LISTEN_N_NEXT,
.next_nodes =
{
@@
-2998,7
+2998,7
@@
VLIB_REGISTER_NODE (tcp4_input_nolookup_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_INPUT_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_INPUT_N_NEXT,
.next_nodes =
{
@@
-3018,7
+3018,7
@@
VLIB_REGISTER_NODE (tcp6_input_nolookup_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_INPUT_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_INPUT_N_NEXT,
.next_nodes =
{
@@
-3052,7
+3052,7
@@
VLIB_REGISTER_NODE (tcp4_input_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_INPUT_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_INPUT_N_NEXT,
.next_nodes =
{
@@
-3072,7
+3072,7
@@
VLIB_REGISTER_NODE (tcp6_input_node) =
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.n_errors = TCP_N_ERROR,
- .error_
strings = tcp_error_string
s,
+ .error_
counters = tcp_input_error_counter
s,
.n_next_nodes = TCP_INPUT_N_NEXT,
.next_nodes =
{
.n_next_nodes = TCP_INPUT_N_NEXT,
.next_nodes =
{