From 0c3ca59e3f4a0596a361bca0b1e1ea096d98650c Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 28 Jun 2022 19:21:32 -0700 Subject: hsa: reduce number of preallocated vcl test server sessions Type: improvement Signed-off-by: Florin Coras Change-Id: I7afc6116ca9a609992f26d9e78084732bba1b2ea --- src/plugins/hs_apps/vcl/vcl_test.h | 1 + src/plugins/hs_apps/vcl/vcl_test_server.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/hs_apps/vcl') diff --git a/src/plugins/hs_apps/vcl/vcl_test.h b/src/plugins/hs_apps/vcl/vcl_test.h index e2a19e1a1fc..4c816b80063 100644 --- a/src/plugins/hs_apps/vcl/vcl_test.h +++ b/src/plugins/hs_apps/vcl/vcl_test.h @@ -67,6 +67,7 @@ #define VCL_TEST_CFG_BUF_SIZE_MIN 128 #define VCL_TEST_CFG_MAX_TEST_SESS ((uint32_t) 1e6) #define VCL_TEST_CFG_MAX_SELECT_SESS 512 +#define VCL_TEST_CFG_INIT_TEST_SESS 512 #define VCL_TEST_CFG_MAX_EPOLL_EVENTS 16 #define VCL_TEST_CTRL_LISTENER (~0 - 1) diff --git a/src/plugins/hs_apps/vcl/vcl_test_server.c b/src/plugins/hs_apps/vcl/vcl_test_server.c index f5c81ce22b3..b4ec0a6e595 100644 --- a/src/plugins/hs_apps/vcl/vcl_test_server.c +++ b/src/plugins/hs_apps/vcl/vcl_test_server.c @@ -590,7 +590,7 @@ vts_worker_init (vcl_test_server_worker_t * wrk) vtinf ("Initializing worker ..."); - conn_pool_expand (wrk, VCL_TEST_CFG_MAX_TEST_SESS + 1); + conn_pool_expand (wrk, VCL_TEST_CFG_INIT_TEST_SESS + 1); if (wrk->wrk_index) if (vppcom_worker_register ()) vtfail ("vppcom_worker_register()", 1); -- cgit 1.2.3-korg