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/tcp/tcp_debug.h | |
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/tcp/tcp_debug.h')
-rwxr-xr-x | src/vnet/tcp/tcp_debug.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vnet/tcp/tcp_debug.h b/src/vnet/tcp/tcp_debug.h index cd4a6f04d6e..d125ee84612 100755 --- a/src/vnet/tcp/tcp_debug.h +++ b/src/vnet/tcp/tcp_debug.h @@ -806,13 +806,14 @@ if (TCP_DEBUG_CC > 1) \ { \ ELOG_TYPE_DECLARE (_e) = \ { \ - .format = "rcv_stat: rto %u srtt %u rttvar %u ", \ - .format_args = "i4i4i4", \ + .format = "rcv_stat: rto %u srtt %u mrtt-us %u rttvar %u", \ + .format_args = "i4i4i4i4", \ }; \ - DECLARE_ETD(_tc, _e, 3); \ + DECLARE_ETD(_tc, _e, 4); \ ed->data[0] = _tc->rto; \ ed->data[1] = _tc->srtt; \ - ed->data[2] = _tc->rttvar; \ + ed->data[2] = (u32) (_tc->mrtt_us * 1e6); \ + ed->data[3] = _tc->rttvar; \ } #define TCP_EVT_CC_RTO_STAT_HANDLER(_tc, ...) \ |