From 053a0e44edb21713e0825f9c09ba4af12e686b38 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 13 Nov 2018 15:52:38 -0800 Subject: 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 --- src/plugins/unittest/session_test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins/unittest') 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); -- cgit 1.2.3-korg