diff options
author | Florin Coras <fcoras@cisco.com> | 2022-06-28 14:34:45 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-06-28 21:34:36 +0000 |
commit | cf5c774b594d4b403e817886c8d41efd927f06b4 (patch) | |
tree | c4f263914b6a26ce419a5350790f12d098a26582 | |
parent | 365fabea1eac892b838a258d39e6e6eee8adbd2d (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
-rw-r--r-- | src/vnet/session/session.c | 7 | ||||
-rw-r--r-- | test/test_quic.py | 2 |
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}", |