From: Florin Coras Date: Tue, 28 Nov 2023 19:30:42 +0000 (-0800) Subject: tcp: add counter for accepted connections X-Git-Tag: v24.06-rc0~113 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F16%2F40016%2F3;p=vpp.git tcp: add counter for accepted connections Type: improvement Signed-off-by: Florin Coras Change-Id: I2925134cfcfa36c14b3b69efa892b9b96fce2e6f --- diff --git a/src/vnet/tcp/tcp_error.def b/src/vnet/tcp/tcp_error.def index a6f0ce4b35f..87fdcc02615 100644 --- a/src/vnet/tcp/tcp_error.def +++ b/src/vnet/tcp/tcp_error.def @@ -49,3 +49,4 @@ tcp_error (RCV_WND, rcv_wnd, WARN, "Segment not in receive window") tcp_error (FIN_RCVD, fin_rcvd, INFO, "FINs received") tcp_error (LINK_LOCAL_RW, link_local_rw, ERROR, "No rewrite for link local connection") tcp_error (ZERO_RWND, zero_rwnd, WARN, "Zero receive window") +tcp_error (CONN_ACCEPTED, conn_accepted, INFO, "Connections accepted") \ No newline at end of file diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index 88ae0a32b60..c069a9b08d6 100644 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -2152,7 +2152,7 @@ tcp46_rcv_process_inline (vlib_main_t *vm, vlib_node_runtime_t *node, tcp_connection_cleanup (tc); goto drop; } - error = TCP_ERROR_ACK_OK; + error = TCP_ERROR_CONN_ACCEPTED; break; case TCP_STATE_ESTABLISHED: /* We can get packets in established state here because they