session: ignore rpc in fifo event lookups 70/34770/2
authorFlorin Coras <fcoras@cisco.com>
Sun, 19 Dec 2021 19:38:30 +0000 (11:38 -0800)
committerDamjan Marion <dmarion@me.com>
Mon, 20 Dec 2021 19:38:01 +0000 (19:38 +0000)
RPCs are not associated to sessions.

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I6b7870a3ebc2e8f32a6c1b10e2552d9e074c7eb3

src/vnet/session/session_debug.c

index 349d1ec..f62af1c 100644 (file)
@@ -180,7 +180,6 @@ dump_thread_0_event_queue (void)
 static u8
 session_node_cmp_event (session_event_t * e, svm_fifo_t * f)
 {
-  session_t *s;
   switch (e->event_type)
     {
     case SESSION_IO_EVT_RX:
@@ -192,16 +191,7 @@ session_node_cmp_event (session_event_t * e, svm_fifo_t * f)
        return 1;
       break;
     case SESSION_CTRL_EVT_CLOSE:
-      break;
     case SESSION_CTRL_EVT_RPC:
-      s = session_get_from_handle (e->session_handle);
-      if (!s)
-       {
-         clib_warning ("session has event but doesn't exist!");
-         break;
-       }
-      if (s->rx_fifo == f || s->tx_fifo == f)
-       return 1;
       break;
     default:
       break;