]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: don't clear lost_skb_hint when not necessary
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Sun, 21 Sep 2008 04:25:52 +0000 (21:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Sep 2008 04:25:52 +0000 (21:25 -0700)
commit72e5e7deeb6a0776e5cc56b6446607d0a15f7a4d
tree87a14ffe430d4663ec4df268459c78d07a4e75a2
parent70bf195b781b6cc4ab1e53945c075fcaab6d6f97
tcp: don't clear lost_skb_hint when not necessary

Most importantly avoid doing it with cumulative ACK. However,
since we have lost_cnt_hint in the picture as well needing
adjustments, it's not as trivial as dealing with
retransmit_skb_hint (and cannot be done in the all place we
could trivially leave retransmit_skb_hint untouched).

With the previous patch, this should mostly remove O(n^2)
behavior while cumulative ACKs start flowing once rexmit
after a lossy round-trip made it through.

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