vlib: flush rpcs on worker sync

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I89624254649089e497d119eb6cee2cecf3dc11f3
This commit is contained in:
Florin Coras
2024-02-01 21:13:10 -08:00
committed by Florin Coras
parent 4cadd3b15b
commit e060b0a079

View 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 */