diff options
author | Florin Coras <fcoras@cisco.com> | 2019-04-05 15:25:50 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2019-04-06 11:35:37 +0000 |
commit | 0eed0e1dd18702d96e4b96e3494c13ab0476f46e (patch) | |
tree | 5ba64936e8df88599b4c411b98b56c6b17b23dbe /src/plugins/quic | |
parent | 05f7ca110bb67f73af69ded6b915ee70754fbb6f (diff) |
quic: support addition of fifo segments
Change-Id: I8cb03ee832e77d2b21d47aa7a44579c283fb1054
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/plugins/quic')
-rw-r--r-- | src/plugins/quic/quic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c index c7e3339e5ee..c8288710a1a 100644 --- a/src/plugins/quic/quic.c +++ b/src/plugins/quic/quic.c @@ -1505,10 +1505,10 @@ static clib_error_t * quic_init (vlib_main_t * vm) { QUIC_DBG (2, "Called quic_init"); + u32 add_segment_size = (4096ULL << 20) - 1, segment_size = 512 << 20; vlib_thread_main_t *vtm = vlib_get_thread_main (); vnet_app_attach_args_t _a, *a = &_a; u64 options[APP_OPTIONS_N_OPTIONS]; - u32 segment_size = 512 << 20; quic_main_t *qm = &quic_main; u32 fifo_size = 64 << 10; u32 num_threads; @@ -1523,6 +1523,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_RX_FIFO_SIZE] = fifo_size; a->options[APP_OPTIONS_TX_FIFO_SIZE] = fifo_size; a->options[APP_OPTIONS_FLAGS] = APP_OPTIONS_FLAGS_IS_BUILTIN; |