]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit90638a04ad8484b6b6c567656fb3f6d0689e23da
tree87a14ffe430d4663ec4df268459c78d07a4e75a2
parentef9da47c7cc64d69526331f315e76b5680d4048f
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