summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vcl/vcl_bapi.c1
-rw-r--r--src/vcl/vcl_private.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/vcl/vcl_bapi.c b/src/vcl/vcl_bapi.c
index 618a46d0a7e..23007837365 100644
--- a/src/vcl/vcl_bapi.c
+++ b/src/vcl/vcl_bapi.c
@@ -495,6 +495,7 @@ vcl_bapi_connect_to_vpp (void)
vcl_bapi_cleanup ();
vlibapi_set_main (&wrk->bapi_api_ctx);
+ vlibapi_set_memory_client_main (&wrk->bapi_mem_ctx);
vcl_bapi_hookup ();
if (!vcl_cfg->vpp_bapi_socket_name)
diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h
index df0ca070ccf..1ac9691ad78 100644
--- a/src/vcl/vcl_private.h
+++ b/src/vcl/vcl_private.h
@@ -286,6 +286,7 @@ typedef struct vcl_worker_
clib_socket_t app_api_sock;
socket_client_main_t bapi_sock_ctx;
api_main_t bapi_api_ctx;
+ memory_client_main_t bapi_mem_ctx;
/* State of the connection, shared between msg RX thread and main thread */
volatile vcl_bapi_app_state_t bapi_app_state;