]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: Fix quick-ack decrementing with TSO.
authorDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2005 22:17:45 +0000 (15:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2005 22:17:45 +0000 (15:17 -0700)
commitaecdca4d5ebea84aeba3ebc6022c8095a01a5168
tree71c326c1176e87c57c80cb32d9049b813f58bced
parent7187a1506121841f26a26e24ea78599e1b6b03e3
[TCP]: Fix quick-ack decrementing with TSO.

On each packet output, we call tcp_dec_quickack_mode()
if the ACK flag is set.  It drops tp->ack.quick until
it hits zero, at which time we deflate the ATO value.

When doing TSO, we are emitting multiple packets with
ACK set, so we should decrement tp->ack.quick that many
segments.

Note that, unlike this case, tcp_enter_cwr() should not
take the tcp_skb_pcount(skb) into consideration.  That
function, one time, readjusts tp->snd_cwnd and moves
into TCP_CA_CWR state.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_output.c