Move RPC calls off the binary API input queue
[vpp.git] / src / vlib / main.h
index 7c34fb6..1cf8fe1 100644 (file)
@@ -207,8 +207,10 @@ typedef struct vlib_main_t
   /* Earliest barrier can be closed again */
   f64 barrier_no_close_before;
 
-  /* Vector of pending RPC requests */
+  /* RPC requests, main thread only */
   uword *pending_rpc_requests;
+  uword *processing_rpc_requests;
+  clib_spinlock_t pending_rpc_lock;
 
 } vlib_main_t;