]> err.no Git - linux-2.6/commit
[PATCH] tcp: fix TSO cwnd caching bug
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 5 Aug 2005 02:52:02 +0000 (19:52 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 5 Aug 2005 04:43:14 +0000 (21:43 -0700)
commitb68e9f857271189bd7a59b74c99890de9195b0e1
tree92ef0899ca9ff07f64458febcb7ab8095e891042
parent846998ae87a80b0fd45b4cf5cf001a159d746f27
[PATCH] tcp: fix TSO cwnd caching bug

tcp_write_xmit caches the cwnd value indirectly in cwnd_quota.  When
tcp_transmit_skb reduces the cwnd because of tcp_enter_cwr, the cached
value becomes invalid.

This patch ensures that the cwnd value is always reread after each
tcp_transmit_skb call.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
net/ipv4/tcp_output.c