[TCP] cubic: precompute constants
authorStephen Hemminger <shemminger@osdl.org>
Thu, 22 Dec 2005 03:32:08 +0000 (19:32 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 3 Jan 2006 21:11:08 +0000 (13:11 -0800)
commit89b3d9aaf46791177c5a5fa07a3ed38a035b5ef5
tree161c94fe1060d267de87a6cee04e6dc7838f2816
parent90933fc8ba5cc9034e3c04ee19938a22b0b4fe4e
[TCP] cubic: precompute constants

Revised version of patch to pre-compute values for TCP cubic.
  * d32,d64 replaced with descriptive names
  * cube_factor replaces
 srtt[scaled by count] / HZ * ((1 << (10+2*BICTCP_HZ)) / bic_scale)
  * beta_scale replaces
8*(BICTCP_BETA_SCALE+beta)/3/(BICTCP_BETA_SCALE-beta);

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_cubic.c