From 6126ec9c5327c41d6bbf60b352c7b9a6699d9ade Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 20 Sep 2024 09:40:57 -0700 Subject: udp: node counter for connected sessions Type: improvement Signed-off-by: Florin Coras Change-Id: I4c0c1b27adb3e3ea3c3ff6353b068447db19fa85 --- src/vnet/udp/udp_error.def | 1 + src/vnet/udp/udp_input.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/vnet/udp/udp_error.def b/src/vnet/udp/udp_error.def index ef19970ce72..843aacfc6ef 100644 --- a/src/vnet/udp/udp_error.def +++ b/src/vnet/udp/udp_error.def @@ -28,3 +28,4 @@ udp_error (CREATE_SESSION, create_session, ERROR, "Failed to create session") udp_error (MQ_FULL, mq_full, ERROR, "Application msg queue full") udp_error (INVALID_CONNECTION, invalid_connection, ERROR, "Invalid connection") udp_error (PKTS_SENT, pkts_sent, INFO, "Packets sent") +udp_error (CONNECTED, connected, INFO, "Connected session") diff --git a/src/vnet/udp/udp_input.c b/src/vnet/udp/udp_input.c index a90461186c1..693824f9628 100644 --- a/src/vnet/udp/udp_input.c +++ b/src/vnet/udp/udp_input.c @@ -272,6 +272,7 @@ udp46_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node, uc0->sw_if_index = vnet_buffer (b[0])->sw_if_index[VLIB_RX]; if (uc0->flags & UDP_CONN_F_CONNECTED) { + error0 = UDP_ERROR_CONNECTED; if (s0->thread_index != thread_index) { /* -- cgit 1.2.3-korg