diff options
author | Florin Coras <fcoras@cisco.com> | 2019-07-20 15:53:16 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2019-07-23 17:37:30 +0000 |
commit | 60183db3a8b25714539882cca05ba3b9e9e54489 (patch) | |
tree | 401b275c491a43a061076f74afc4878c2b0e1de9 /src/vnet/session/session.c | |
parent | 687c9021fda009caa2b7eb17bea2eaa51d275bde (diff) |
session: reorganize dispatch logic
Type:refactor
Change-Id: Id796d0103e61e15c35a586d8cbd3d8916487b84d
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r-- | src/vnet/session/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index 4e340687041..ea1a8c9fc5e 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -1377,12 +1377,12 @@ session_manager_main_enable (vlib_main_t * vm) { wrk = &smm->wrk[i]; wrk->new_head = clib_llist_make_head (wrk->event_elts, evt_list); - wrk->pending_head = clib_llist_make_head (wrk->event_elts, evt_list); + wrk->old_head = clib_llist_make_head (wrk->event_elts, evt_list); wrk->postponed_head = clib_llist_make_head (wrk->event_elts, evt_list); wrk->disconnects_head = clib_llist_make_head (wrk->event_elts, evt_list); + wrk->vm = vlib_mains[i]; wrk->last_vlib_time = vlib_time_now (vlib_mains[i]); - wrk->dispatch_period = 500e-6; if (num_threads > 1) clib_rwlock_init (&smm->wrk[i].peekers_rw_locks); |