session: use safe realloc for pools
[vpp.git] / src / vnet / session / session_cli.c
index 1505a95..2003f0a 100644 (file)
@@ -259,7 +259,6 @@ unformat_session (unformat_input_t * input, va_list * args)
   if (s)
     {
       *result = s;
-      session_pool_remove_peeker (s->thread_index);
       return 1;
     }
   return 0;
@@ -455,9 +454,9 @@ session_cli_show_events_thread (vlib_main_t * vm, u32 thread_index)
 
   vlib_cli_output (vm, "Thread %d:\n", thread_index);
   vlib_cli_output (vm, " evt elements alloc: %u",
-                  pool_elts (wrk->event_elts));
+                  clib_llist_elts (wrk->event_elts));
   vlib_cli_output (vm, " ctrl evt elt data alloc: %d",
-                  pool_elts (wrk->ctrl_evts_data));
+                  clib_llist_elts (wrk->ctrl_evts_data));
 }
 
 static void