]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tcp: fix cwnd reduction for non-sack recovery
authorYuchung Cheng <ycheng@google.com>
Thu, 23 Aug 2012 07:05:17 +0000 (07:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:38:55 +0000 (10:38 -0700)
commit1d7b926e92f37be1a45ada2c3bdce9970a53cb93
tree261e7fec899d787e245e2fe1d76191d13949a3dd
parent2dfd8abf6c1f5ec34730dc72f2c4a4f31c6b8dc6
tcp: fix cwnd reduction for non-sack recovery

[ Upstream commit 7c4a56fec379ac0d7754e0d4da6a7361f1a4fe64 ]

The cwnd reduction in fast recovery is based on the number of packets
newly delivered per ACK. For non-sack connections every DUPACK
signifies a packet has been delivered, but the sender mistakenly
skips counting them for cwnd reduction.

The fix is to compute newly_acked_sacked after DUPACKs are accounted
in sacked_out for non-sack connections.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Acked-by: Nandita Dukkipati <nanditad@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_input.c