diff options
author | Florin Coras <fcoras@cisco.com> | 2021-05-16 10:58:53 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-05-18 14:21:28 +0000 |
commit | a48dffeed3d5182d1faa41f2ba64beb20bf10ea0 (patch) | |
tree | 4be49a43f14694b0fabadc3f0f5da745309d34ce /src/vnet/session/session.c | |
parent | a920af705814baf5eef7ff58f064440a070d8d23 (diff) |
session: poll main thread if pending connects
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ie8a15c50531f3ccd5f91dbc0779e4d9c0d146844
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r-- | src/vnet/session/session.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index f38db777ae3..d6a531e3f84 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -1822,6 +1822,7 @@ session_manager_main_enable (vlib_main_t * vm) wrk->vm = vlib_get_main_by_index (i); wrk->last_vlib_time = vlib_time_now (vm); wrk->last_vlib_us_time = wrk->last_vlib_time * CLIB_US_TIME_FREQ; + wrk->timerfd = -1; vec_validate (wrk->session_to_enqueue, smm->last_transport_proto_type); if (num_threads > 1) @@ -1899,6 +1900,7 @@ session_node_enable_disable (u8 is_en) if (i == 0 && n_vlibs > 1) { vlib_node_set_state (vm, session_queue_node.index, mstate); + session_main_get_worker (0)->state = SESSION_WRK_INTERRUPT; if (is_en) { vlib_node_set_state (vm, session_queue_process_node.index, |