aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/vcl_private.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-01-05 20:45:44 -0800
committerDave Barach <openvpp@barachs.net>2021-01-06 19:00:37 +0000
commit3b6c84c8411f0052410fa0f207fd90f99cee5a2b (patch)
treeebff2f9b10a3c7618babbd7c217029bcf3078cc2 /src/vcl/vcl_private.h
parent4da0ea98c282fbc7a747d255a38e969406f202f4 (diff)
vcl: allow all workers to block on api
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Id94cf2aeae8167868d5f96534224759c1ef6f837
Diffstat (limited to 'src/vcl/vcl_private.h')
-rw-r--r--src/vcl/vcl_private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h
index c864375dd31..0aa2fc10fa0 100644
--- a/src/vcl/vcl_private.h
+++ b/src/vcl/vcl_private.h
@@ -285,6 +285,9 @@ typedef struct vcl_worker_
socket_client_main_t bapi_sock_ctx;
api_main_t bapi_api_ctx;
+ /* State of the connection, shared between msg RX thread and main thread */
+ volatile vcl_bapi_app_state_t bapi_app_state;
+
/** vcl needs next epoll_create to go to libc_epoll */
u8 vcl_needs_real_epoll;
volatile int rpc_done;
@@ -339,9 +342,6 @@ typedef struct vppcom_main_t_
* Binary api context
*/
- /* State of the connection, shared between msg RX thread and main thread */
- volatile vcl_bapi_app_state_t bapi_app_state;
-
/* VNET_API_ERROR_FOO -> "Foo" hash table */
uword *error_string_by_error_number;