]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
TCP: Fix TCP rate-halving on bidirectional flows.
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Wed, 22 Aug 2007 04:17:03 +0000 (21:17 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 31 Aug 2007 06:01:51 +0000 (23:01 -0700)
commit783366ad4b212cde069c50903494eb6a6b83958c
tree533c98ecbee00ae462deabe5320ce323d7b37725
parente061467dc5b4c78d4fe61ea6d7a0c848e22882d7
TCP: Fix TCP rate-halving on bidirectional flows.

Actually, the ratehalving seems to work too well, as cwnd is
reduced on every second ACK even though the packets in flight
remains unchanged. Recoveries in a bidirectional flows suffer
quite badly because of this, both NewReno and SACK are affected.

After this patch, rate halving is performed for ACK only if
packets in flight was supposedly changed too.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/tcp_input.c