]> CyberLeo.Net >> Repos - FreeBSD/releng/9.1.git/commit
MFC r239346:
authorlstewart <lstewart@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 22 Aug 2012 01:28:16 +0000 (01:28 +0000)
committerlstewart <lstewart@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 22 Aug 2012 01:28:16 +0000 (01:28 +0000)
commit1007fd5efa51f538b4147d37e769c1f4cf9d0206
tree9790e4284b34ef4c95f54e138966edf847a0f727
parent8ab4d8edad246af2914519ca7545e92b96a27904
MFC r239346:

The TCP PAWS fix for kernels with fast tick rates (r231767) changed the TCP
timestamp related stack variables to reference ms directly instead of ticks. The
h_ertt(4) Khelp module relies on TCP timestamp information in order to calculate
its enhanced RTT estimates, but was not updated as part of r231767.

Consequently, h_ertt has not been calculating correct RTT estimates since
r231767 was comitted, which in turn broke all delay-based congestion control
algorithms because they rely on the h_ertt RTT estimates.

Fix the breakage by switching h_ertt to use tcp_ts_getticks() in place of all
previous uses of the ticks variable. This ensures all timestamp related
variables in h_ertt use the same units as the TCP stack and therefore results in
meaningful comparisons and RTT estimate calculations.

Reported & tested by: Naeem Khademi (naeemk at ifi uio no)
Discussed with: bz
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/releng/9.1@239550 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/khelp/h_ertt.c