summaryrefslogtreecommitdiffstats
path: root/vlib/vlib/main.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-04-19 09:38:35 -0400
committerDave Barach <dave@barachs.net>2016-04-19 09:38:53 -0400
commitdae88b9a53c2bbdc8a60d05efa7e879e2544eb5a (patch)
treed7e6bb98d02e1c6475543866e9a9b7dff29cbd4d /vlib/vlib/main.h
parenta4f16a0e570e663bdf6285b0ac5c4258fcd9ffd3 (diff)
VPP-6: set epoll wait-time to zero when binary API messages are waiting
Change-Id: I629ef98ecd3b729d2564b3a1ba8c6039f854f86c Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib/vlib/main.h')
-rw-r--r--vlib/vlib/main.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vlib/vlib/main.h b/vlib/vlib/main.h
index 1a110459826..ef36c1e39ac 100644
--- a/vlib/vlib/main.h
+++ b/vlib/vlib/main.h
@@ -168,8 +168,9 @@ typedef struct vlib_main_t {
vlib_config_function_runtime_t *config_function_registrations;
mc_serialize_msg_t *mc_msg_registrations; /* mc_main is a pointer... */
- /* control-plane API queue signal pending */
+ /* control-plane API queue signal pending, length indication */
volatile u32 queue_signal_pending;
+ volatile u32 api_queue_nonempty;
void (*queue_signal_callback)(struct vlib_main_t *);
u8 **argv;
} vlib_main_t;