diff options
author | Florin Coras <fcoras@cisco.com> | 2018-11-07 12:49:19 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-11-08 11:20:29 +0000 |
commit | efefc6b4b219e2897e48def83352b4df52bc03a0 (patch) | |
tree | 50e7a57901e34365c1c4f5dc8868c705b192d864 /src/vnet/session/session_node.c | |
parent | 221d6f131d644b2d14f741c4b3031f53b8a8ff03 (diff) |
tcp: pacer and mrtt estimation improvements
- update pacer once per burst
- better estimate initial rtt
- compute smoothed average for higher precision rtt estimate
Change-Id: I06d41a98784cdf861bedfbee2e7d0afc0d0154ef
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_node.c')
-rw-r--r-- | src/vnet/session/session_node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c index 64c873cc758..22d8d3c45b0 100644 --- a/src/vnet/session/session_node.c +++ b/src/vnet/session/session_node.c @@ -99,7 +99,7 @@ session_mq_reset_reply_handler (void *data) s = session_get_if_valid (index, thread_index); if (!s) { - clib_warning ("Invalid session!"); + SESSION_DBG ("Invalid session!"); return; } app_wrk = app_worker_get (s->app_wrk_index); @@ -751,7 +751,7 @@ static void session_update_dispatch_period (session_manager_worker_t * wrk, f64 now, u32 thread_index) { - if (wrk->last_tx_packets > 1) + if (wrk->last_tx_packets) { f64 sample = now - wrk->last_vlib_time; wrk->dispatch_period = (wrk->dispatch_period + sample) * 0.5; |