diff options
author | Florin Coras <fcoras@cisco.com> | 2018-11-01 16:30:54 -0700 |
---|---|---|
committer | Marco Varlese <marco.varlese@suse.de> | 2018-11-02 08:06:46 +0000 |
commit | c44a558164a466a74a4c10d4e7d7dd1b9a4b01dd (patch) | |
tree | 3f71b876678de40d0bd6f0a15f463dbe51d61719 /src/vnet/session/session.c | |
parent | be72ae6149a432899698a887b1820cf5c9d9456f (diff) |
session: measure dispatch period only if under load
Also reset pacer on tcp retransmit timeout
Change-Id: I5a9edee4c00d1d169248d79587a9b10437c2bd87
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r-- | src/vnet/session/session.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index 3dd80ad337a..f6894868a3a 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -1366,6 +1366,7 @@ session_manager_main_enable (vlib_main_t * vm) _vec_len (wrk->postponed_event_vector) = 0; 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); |