summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-06-28 14:34:45 -0700
committerDave Wallace <dwallacelf@gmail.com>2022-06-28 22:42:01 +0000
commit40d811fee896a5fd113f2bc7c739e397e72d0daa (patch)
tree38a89d99c251227dbbd618e5d328ca539fea41e3 /src/vnet
parentea4bcec987b509caf098c6ec2681a1f116309ab7 (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 (cherry picked from commit cf5c774b594d4b403e817886c8d41efd927f06b4)
Diffstat (limited to 'src/vnet')
-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))
{