vlib: flush rpcs on worker sync 85/40285/2
authorFlorin Coras <fcoras@cisco.com>
Fri, 2 Feb 2024 05:13:10 +0000 (21:13 -0800)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 2 Feb 2024 17:46:44 +0000 (17:46 +0000)
Type: fix

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

src/vlib/threads.c

index b675b88..03fda38 100644 (file)
@@ -1519,6 +1519,7 @@ vlib_workers_sync (void)
       u32 thread_index = vlib_get_thread_index ();
       vlib_rpc_call_main_thread (vlib_worker_sync_rpc, (u8 *) &thread_index,
                                 sizeof (thread_index));
+      vlib_worker_flush_pending_rpc_requests (vlib_get_main ());
     }
 
   /* Wait until main thread asks for barrier */