summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/session/session.c7
-rw-r--r--test/test_quic.py2
2 files changed, 6 insertions, 3 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))
{
diff --git a/test/test_quic.py b/test/test_quic.py
index fde781c4f4a..6651d74d036 100644
--- a/test/test_quic.py
+++ b/test/test_quic.py
@@ -204,7 +204,7 @@ class QUICEchoExtTestCase(QUICTestCase):
"enable",
"poll-main",
"evt_qs_memfd_seg",
- "evt_qs_seg_size",
+ "wrk-mqs-segment-size",
"64M",
"event-queue-length",
f"{evt_q_len}",