From e060b0a07930c615a00b697e136f5cf2400a7510 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 1 Feb 2024 21:13:10 -0800 Subject: vlib: flush rpcs on worker sync Type: fix Signed-off-by: Florin Coras Change-Id: I89624254649089e497d119eb6cee2cecf3dc11f3 --- src/vlib/threads.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vlib') diff --git a/src/vlib/threads.c b/src/vlib/threads.c index b675b8819d2..03fda388edf 100644 --- a/src/vlib/threads.c +++ b/src/vlib/threads.c @@ -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 */ -- cgit 1.2.3-korg