summaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2024-02-01 21:13:10 -0800
committerFlorin Coras <florin.coras@gmail.com>2024-02-02 17:46:44 +0000
commite060b0a07930c615a00b697e136f5cf2400a7510 (patch)
tree91ffd7072db2bc471ff32b03b792f4606c8c6290 /src/vlib
parent4cadd3b15b54823ac35a235357a7893a74c6c1f7 (diff)
vlib: flush rpcs on worker sync
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I89624254649089e497d119eb6cee2cecf3dc11f3
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/threads.c1
1 files changed, 1 insertions, 0 deletions
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 */