aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-11-13 15:52:38 -0800
committerDamjan Marion <dmarion@me.com>2018-11-18 19:46:38 +0000
commit053a0e44edb21713e0825f9c09ba4af12e686b38 (patch)
tree950e303daf1b367eab26cc823c0efc23ae170b1d /src/plugins
parent0c4fec0134f32bc913299b37d048a99293b1a851 (diff)
vcl/session: apps with process workers
Allow apps to register child processes as app workers. In particular, on fork vcl now registers the child process with vpp as a new worker. Change-Id: I52a65fbc3292962b1f6e1fe0f6153f739e6e0d4a Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/unittest/session_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/unittest/session_test.c b/src/plugins/unittest/session_test.c
index 182a8e806ea..e24516668ff 100644
--- a/src/plugins/unittest/session_test.c
+++ b/src/plugins/unittest/session_test.c
@@ -216,6 +216,7 @@ session_test_basic (vlib_main_t * vm, unformat_input_t * input)
vnet_app_detach_args_t detach_args = {
.app_index = server_index,
+ .api_client_index = ~0,
};
vnet_application_detach (&detach_args);
return 0;
@@ -393,6 +394,7 @@ session_test_endpoint_cfg (vlib_main_t * vm, unformat_input_t * input)
vnet_app_detach_args_t detach_args = {
.app_index = server_index,
+ .api_client_index = ~0,
};
vnet_application_detach (&detach_args);
detach_args.app_index = client_index;
@@ -463,6 +465,7 @@ session_test_namespace (vlib_main_t * vm, unformat_input_t * input)
vnet_app_detach_args_t detach_args = {
.app_index = 0,
+ .api_client_index = ~0,
};
ip4_address_t intf_addr = {
@@ -1562,6 +1565,7 @@ session_test_rules (vlib_main_t * vm, unformat_input_t * input)
vec_free (args.table_args.tag);
vnet_app_detach_args_t detach_args = {
.app_index = server_index,
+ .api_client_index = ~0,
};
vnet_application_detach (&detach_args);
@@ -1677,6 +1681,7 @@ session_test_proxy (vlib_main_t * vm, unformat_input_t * input)
vnet_app_detach_args_t detach_args = {
.app_index = server_index,
+ .api_client_index = ~0,
};
vnet_application_detach (&detach_args);