From: Neal Cardwell Date: Tue, 10 Apr 2012 07:59:20 +0000 (+0000) Subject: tcp: fix tcp_rcv_rtt_update() use of an unscaled RTT sample X-Git-Tag: v3.4-rc3~32^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18a223e0b9ec8979320ba364b47c9772391d6d05;p=pandora-kernel.git tcp: fix tcp_rcv_rtt_update() use of an unscaled RTT sample Fix a code path in tcp_rcv_rtt_update() that was comparing scaled and unscaled RTT samples. The intent in the code was to only use the 'm' measurement if it was a new minimum. However, since 'm' had not yet been shifted left 3 bits but 'new_sample' had, this comparison would nearly always succeed, leading us to erroneously set our receive-side RTT estimate to the 'm' sample when that sample could be nearly 8x too high to use. The overall effect is to often cause the receive-side RTT estimate to be significantly too large (up to 40% too large for brief periods in my tests). Signed-off-by: Neal Cardwell Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed