diff options
author | Florin Coras <fcoras@cisco.com> | 2021-04-02 18:32:00 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2021-04-05 21:07:22 +0000 |
commit | 8f10b9050dc6318d7ccb3982eec2ed742752c6ea (patch) | |
tree | 64123a2faaf179db0558023a1a6de8c147528714 /src/vnet/tcp/tcp_cli.c | |
parent | e2daada1d58368b7e77c2990e680bf58e4d94f2e (diff) |
tcp: time infra improvements
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I998c0686f9f7dc556dda8b28e23bbed127d0aafc
Diffstat (limited to 'src/vnet/tcp/tcp_cli.c')
-rw-r--r-- | src/vnet/tcp/tcp_cli.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vnet/tcp/tcp_cli.c b/src/vnet/tcp/tcp_cli.c index 21634df69f7..6d7b7c8ce40 100644 --- a/src/vnet/tcp/tcp_cli.c +++ b/src/vnet/tcp/tcp_cli.c @@ -149,9 +149,8 @@ format_tcp_congestion (u8 * s, va_list * args) format_white_space, indent, tc->snd_congestion - tc->iss, tc->rcv_dupacks, tc->limited_transmit - tc->iss); s = format (s, "%Urxt_bytes %u rxt_delivered %u rxt_head %u rxt_ts %u\n", - format_white_space, indent, tc->snd_rxt_bytes, - tc->rxt_delivered, tc->rxt_head - tc->iss, - tcp_time_now_w_thread (tc->c_thread_index) - tc->snd_rxt_ts); + format_white_space, indent, tc->snd_rxt_bytes, tc->rxt_delivered, + tc->rxt_head - tc->iss, tcp_tstamp (tc) - tc->snd_rxt_ts); if (tcp_in_fastrecovery (tc)) prr_space = tcp_fastrecovery_prr_snd_space (tc); s = format (s, "%Uprr_start %u prr_delivered %u prr space %u\n", @@ -202,7 +201,7 @@ format_tcp_vars (u8 * s, va_list * args) s = format (s, " tsval_recent %u\n", tc->tsval_recent); s = format (s, " tsecr %u tsecr_last_ack %u tsval_recent_age %u", tc->rcv_opts.tsecr, tc->tsecr_last_ack, - tcp_time_now () - tc->tsval_recent_age); + tcp_time_tstamp (tc->c_thread_index) - tc->tsval_recent_age); s = format (s, " snd_mss %u\n", tc->snd_mss); s = format (s, " rto %u rto_boff %u srtt %.1f us %.3f rttvar %.1f", tc->rto / 1000, tc->rto_boff, tc->srtt / 1000.0, |