aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-11-17 23:57:30 -0800
committerDave Barach <openvpp@barachs.net>2021-11-18 15:25:28 +0000
commitef048034be365ba312e37e0fd19c22414f4e6434 (patch)
tree213f44666365ad615387e97e6e35cc988929b4b3 /src/vnet
parent8afe1b88955d2bd2cdcb9b0cb27b21a149af861c (diff)
session: deprecate mq segments baseva
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I5b6cb8dd9db7e003a470ca4aeb8472fa7cb9a128
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/session.c15
-rw-r--r--src/vnet/session/session.h2
2 files changed, 2 insertions, 15 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index de1943c84fc..f063548dcfe 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -1685,8 +1685,6 @@ session_vpp_wrk_mqs_alloc (session_main_t *smm)
mqs_seg->ssvm.ssvm_size = mqs_seg_size;
mqs_seg->ssvm.my_pid = getpid ();
mqs_seg->ssvm.name = format (0, "%s%c", "session: wrk-mqs-segment", 0);
- /* clib_mem_vm_map_shared consumes first page before requested_va */
- mqs_seg->ssvm.requested_va = smm->session_baseva + clib_mem_get_page_size ();
if (ssvm_server_init (&mqs_seg->ssvm, SSVM_SEGMENT_MEMFD))
{
@@ -1986,15 +1984,6 @@ session_main_init (vlib_main_t * vm)
smm->poll_main = 0;
smm->use_private_rx_mqs = 0;
smm->no_adaptive = 0;
- smm->session_baseva = HIGH_SEGMENT_BASEVA;
-
-#if (HIGH_SEGMENT_BASEVA > (4ULL << 30))
- smm->session_va_space_size = 128ULL << 30;
-#else
- smm->session_va_space_size = 128 << 20;
- smm->wrk_mqs_segment_size = 1 << 20;
-#endif
-
smm->last_transport_proto_type = TRANSPORT_PROTO_SRTP;
return 0;
@@ -2092,8 +2081,6 @@ session_config_fn (vlib_main_t * vm, unformat_input_t * input)
;
else if (unformat (input, "enable"))
smm->session_enable_asap = 1;
- else if (unformat (input, "segment-baseva 0x%lx", &smm->session_baseva))
- ;
else if (unformat (input, "use-app-socket-api"))
(void) appns_sapi_enable_disable (1 /* is_enable */);
else if (unformat (input, "poll-main"))
@@ -2107,6 +2094,8 @@ session_config_fn (vlib_main_t * vm, unformat_input_t * input)
*/
else if (unformat (input, "evt_qs_memfd_seg"))
;
+ else if (unformat (input, "segment-baseva 0x%lx", &tmp))
+ ;
else if (unformat (input, "evt_qs_seg_size %U", unformat_memory_size,
&tmp))
;
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h
index 51ca269ef8c..e549da588e9 100644
--- a/src/vnet/session/session.h
+++ b/src/vnet/session/session.h
@@ -220,8 +220,6 @@ typedef struct session_main_
u32 configured_wrk_mq_length;
/** Session ssvm segment configs*/
- uword session_baseva;
- uword session_va_space_size;
uword wrk_mqs_segment_size;
/** Session table size parameters */