diff options
author | Aloys Augustin <aloaugus@cisco.com> | 2019-07-12 11:05:35 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-07-12 17:49:40 +0000 |
commit | bec771b879c2eae31ecef61891405c1570aae2b1 (patch) | |
tree | 55092a4c8cb38fa41aaa1cdd96e4dbe939c6aed3 /src/plugins | |
parent | a0abbff4849e8b8721b70769ae1f3ef27dd6733c (diff) |
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 <aloaugus@cisco.com>
Type: fix
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/quic/quic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c index a96cb8546f4..8e29e74e965 100644 --- a/src/plugins/quic/quic.c +++ b/src/plugins/quic/quic.c @@ -2483,7 +2483,7 @@ static const transport_proto_vft_t quic_proto = { static clib_error_t * quic_init (vlib_main_t * vm) { - u32 add_segment_size = (4096ULL << 20) - 1, segment_size = 512 << 20; + u32 segment_size = 256 << 20; vlib_thread_main_t *vtm = vlib_get_thread_main (); tw_timer_wheel_1t_3w_1024sl_ov_t *tw; vnet_app_attach_args_t _a, *a = &_a; @@ -2502,7 +2502,7 @@ quic_init (vlib_main_t * vm) a->options = options; a->name = format (0, "quic"); a->options[APP_OPTIONS_SEGMENT_SIZE] = segment_size; - a->options[APP_OPTIONS_ADD_SEGMENT_SIZE] = add_segment_size; + a->options[APP_OPTIONS_ADD_SEGMENT_SIZE] = segment_size; a->options[APP_OPTIONS_RX_FIFO_SIZE] = fifo_size; a->options[APP_OPTIONS_TX_FIFO_SIZE] = fifo_size; a->options[APP_OPTIONS_FLAGS] = APP_OPTIONS_FLAGS_IS_BUILTIN; |