udp: node counter for connected sessions 90/41590/2
authorFlorin Coras <[email protected]>
Fri, 20 Sep 2024 16:40:57 +0000 (09:40 -0700)
committerFlorin Coras <[email protected]>
Fri, 20 Sep 2024 16:20:56 +0000 (16:20 +0000)
Type: improvement

Signed-off-by: Florin Coras <[email protected]>
Change-Id: I4c0c1b27adb3e3ea3c3ff6353b068447db19fa85

src/vnet/udp/udp_error.def
src/vnet/udp/udp_input.c

index ef19970..843aacf 100644 (file)
@@ -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")
index a904611..693824f 100644 (file)
@@ -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)
                {
                  /*