summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-06-28 14:34:45 -0700
committerFlorin Coras <florin.coras@gmail.com>2022-06-28 21:34:36 +0000
commitcf5c774b594d4b403e817886c8d41efd927f06b4 (patch)
treec4f263914b6a26ce419a5350790f12d098a26582 /src
parent365fabea1eac892b838a258d39e6e6eee8adbd2d (diff)
session quic: allow custom config of rx mqs seg size
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: Idc0fdebfea29c241d8a36128241ccec03eace5fd
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/session.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 529e01c6613..f15248e0bfe 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -1684,7 +1684,7 @@ session_vpp_wrk_mqs_alloc (session_main_t *smm)
* if larger than minimum size.
*/
mqs_seg_size = svm_msg_q_size_to_alloc (cfg) * vec_len (smm->wrk);
- mqs_seg_size = mqs_seg_size + (32 << 10);
+ mqs_seg_size = mqs_seg_size + (1 << 20);
mqs_seg_size = clib_max (mqs_seg_size, smm->wrk_mqs_segment_size);
mqs_seg->ssvm.ssvm_size = mqs_seg_size;
@@ -2098,6 +2098,9 @@ session_config_fn (vlib_main_t * vm, unformat_input_t * input)
else
clib_warning ("event queue length %d too small, ignored", nitems);
}
+ else if (unformat (input, "wrk-mqs-segment-size %U",
+ unformat_memory_size, &smm->wrk_mqs_segment_size))
+ ;
else if (unformat (input, "preallocated-sessions %d",
&smm->preallocated_sessions))
;
@@ -2174,7 +2177,7 @@ session_config_fn (vlib_main_t * vm, unformat_input_t * input)
else if (unformat (input, "segment-baseva 0x%lx", &tmp))
;
else if (unformat (input, "evt_qs_seg_size %U", unformat_memory_size,
- &tmp))
+ &smm->wrk_mqs_segment_size))
;
else if (unformat (input, "event-queue-length %d", &nitems))
{