session: remove fifo segment va allocator
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I7b2fd896dfa6df46916f46327975b95561809f00
This commit is contained in:

committed by
Florin Coras

parent
14f066e951
commit
9a45bd84d9
@ -1670,11 +1670,9 @@ session_queue_run_on_main_thread (vlib_main_t * vm)
|
||||
static clib_error_t *
|
||||
session_manager_main_enable (vlib_main_t * vm)
|
||||
{
|
||||
segment_manager_main_init_args_t _sm_args = { 0 }, *sm_args = &_sm_args;
|
||||
session_main_t *smm = &session_main;
|
||||
vlib_thread_main_t *vtm = vlib_get_thread_main ();
|
||||
u32 num_threads, preallocated_sessions_per_worker;
|
||||
uword margin = 8 << 12;
|
||||
session_worker_t *wrk;
|
||||
int i;
|
||||
|
||||
@ -1708,10 +1706,8 @@ session_manager_main_enable (vlib_main_t * vm)
|
||||
/* Allocate vpp event queues segment and queue */
|
||||
session_vpp_event_queues_allocate (smm);
|
||||
|
||||
/* Initialize fifo segment main baseva and timeout */
|
||||
sm_args->baseva = smm->session_baseva + smm->evt_qs_segment_size + margin;
|
||||
sm_args->size = smm->session_va_space_size;
|
||||
segment_manager_main_init (sm_args);
|
||||
/* Initialize segment manager properties */
|
||||
segment_manager_main_init ();
|
||||
|
||||
/* Preallocate sessions */
|
||||
if (smm->preallocated_sessions)
|
||||
|
Reference in New Issue
Block a user