aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/main.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2024-02-01 20:46:15 -0800
committerDave Barach <vpp@barachs.net>2024-02-02 14:44:26 +0000
commit4cadd3b15b54823ac35a235357a7893a74c6c1f7 (patch)
treeab7e7ef2203409fb13ee0fab2c5936d74c8342a8 /src/vlib/main.c
parentd7f17a23931a64badc95d57a332c2700e2f34118 (diff)
vlib api: move wrkr rpc flushing to vlib
Move vlib worker rpc flushing to main worker from memclnt api into vlib. RPCs are no longer delivered via binary api queues Type: refactor Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I5b8761a57d1f4a1f2220e860cfb2e6b980f46f6d
Diffstat (limited to 'src/vlib/main.c')
-rw-r--r--src/vlib/main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/vlib/main.c b/src/vlib/main.c
index 219ed220007..6d91db7a5b3 100644
--- a/src/vlib/main.c
+++ b/src/vlib/main.c
@@ -1438,12 +1438,6 @@ dispatch_suspended_process (vlib_main_t * vm,
return t;
}
-void vl_api_send_pending_rpc_requests (vlib_main_t *) __attribute__ ((weak));
-void
-vl_api_send_pending_rpc_requests (vlib_main_t * vm)
-{
-}
-
static_always_inline void
vlib_main_or_worker_loop (vlib_main_t * vm, int is_main)
{
@@ -1506,7 +1500,7 @@ vlib_main_or_worker_loop (vlib_main_t * vm, int is_main)
if (PREDICT_FALSE (_vec_len (vm->pending_rpc_requests) > 0))
{
if (!is_main)
- vl_api_send_pending_rpc_requests (vm);
+ vlib_worker_flush_pending_rpc_requests (vm);
}
if (!is_main)