tcp: don't clear retransmit_skb_hint when not necessary

Most importantly avoid doing it with cumulative ACK. Not clearing
means that we no longer need n^2 processing in resolution of each
fast recovery.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Ilpo Järvinen
2008-09-20 21:25:15 -07:00
committed by David S. Miller
parent f0ceb0ed86
commit ef9da47c7c
3 changed files with 14 additions and 5 deletions

View File

@ -1037,10 +1037,15 @@ static inline void tcp_mib_init(struct net *net)
}
/* from STCP */
static inline void tcp_clear_all_retrans_hints(struct tcp_sock *tp)
static inline void tcp_clear_retrans_hints_partial(struct tcp_sock *tp)
{
tp->lost_skb_hint = NULL;
tp->scoreboard_skb_hint = NULL;
}
static inline void tcp_clear_all_retrans_hints(struct tcp_sock *tp)
{
tcp_clear_retrans_hints_partial(tp);
tp->retransmit_skb_hint = NULL;
}