tcp: fix cubic scaling error
authorStephen Hemminger <shemminger@osdl.org>
Sun, 8 Apr 2007 21:45:04 +0000 (23:45 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sun, 8 Apr 2007 21:45:04 +0000 (23:45 +0200)
commit928fb605c9107cc5c4e4e77d99ea455651a4635f
tree6cecc698ca017c7a8720ab894fa04f206bbdc935
parent289a332c20458518f27f4a32fe2a69364489c782
tcp: fix cubic scaling error

Doug Leith observed a discrepancy between the version of CUBIC described
in the papers and the version in 2.6.18. A math error related to scaling
causes Cubic to grow too slowly.

Patch is from "Sangtae Ha" <sha2@ncsu.edu>. I validated that
it does fix the problems.

See the following to show behavior over 500ms 100 Mbit link.

Sender (2.6.19-rc3) ---  Bridge (2.6.18-rt7) ------- Receiver (2.6.19-rc3)
                    1G      [netem]           100M

        http://developer.osdl.org/shemminger/tcp/2.6.19-rc3/cubic-orig.png
        http://developer.osdl.org/shemminger/tcp/2.6.19-rc3/cubic-fix.png

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipv4/tcp_cubic.c