aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-04-07 17:03:01 -0700
committerFlorin Coras <florin.coras@gmail.com>2021-04-08 01:23:04 +0000
commitfda21c97017c1f7bcfa1a0903ca605b89f3148f0 (patch)
tree950f4ee0244c7456ad41fdbcc0b3e32bf3813acd /src/vcl
parent289c7f590e1ca80dde5638c109c738fe9b8f3eaf (diff)
vcl: use per worker mem bapi context
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I07920a61e64cf1556c6b795d573cbd6a74675c1c
Diffstat (limited to 'src/vcl')
-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;