From bec771b879c2eae31ecef61891405c1570aae2b1 Mon Sep 17 00:00:00 2001 From: Aloys Augustin Date: Fri, 12 Jul 2019 11:05:35 +0200 Subject: tls quic: reduce default segment sizes This reduces the memory required by tls and quic, allowing to run them (and their tests) in more constrained environments by default. Change-Id: I954081c725fb4f5f173db1f8e76922d957c5b0a2 Signed-off-by: Aloys Augustin Type: fix --- src/vnet/tls/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet') diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c index 8d38be4ef8e..6769fd254b6 100644 --- a/src/vnet/tls/tls.c +++ b/src/vnet/tls/tls.c @@ -789,7 +789,7 @@ tls_register_engine (const tls_engine_vft_t * vft, tls_engine_type_t type) static clib_error_t * tls_init (vlib_main_t * vm) { - u32 add_segment_size = (4096ULL << 20) - 1, first_seg_size = 32 << 20; + u32 add_segment_size = 256 << 20, first_seg_size = 32 << 20; vlib_thread_main_t *vtm = vlib_get_thread_main (); u32 num_threads, fifo_size = 128 << 10; vnet_app_attach_args_t _a, *a = &_a; -- cgit 1.2.3-korg