]> git.michaelhowe.org Git - packages/o/openafs.git/commit
rx: Simplify round trip time calculation
authorSimon Wilkinson <sxw@your-file-system.com>
Mon, 11 Oct 2010 17:25:38 +0000 (13:25 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 26 Oct 2010 01:12:15 +0000 (18:12 -0700)
commit05a7177c91570f40c5812aa1904b554f6478c5a5
tree35f98e19ad51cb96fa8937c3d2dcae665f8b4b59
parentbda8dca6f7d04cb8bcb069fa1517213deb3cda1c
rx: Simplify round trip time calculation

Move the logic for deciding whether to compute RTT out of PeerNetStats
and into the callers. This means that we can share decisions about
whether a packet is ACK'd or not, and avoid uneccessary multiple tests
and function calls.

This change also stops us from computing RTT times for packets outside
of the set of explicit ACKs that we have received. This means that we
no longer compute RTTs for packets that are on the transmit queue, but
not yet on the wire.

Reviewed-on: http://gerrit.openafs.org/2960
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit f7799a35c5942ba4feda3bc8c848cdaa8e0b7b76)
Change-Id: Idf4ba83ba187fd97caa85d0d042662c3b12efa02
Reviewed-on: http://gerrit.openafs.org/3113
src/rx/rx.c