diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2008-09-21 04:25:15 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-21 04:25:15 (GMT) |
commit | ef9da47c7cc64d69526331f315e76b5680d4048f (patch) | |
tree | 97407b83c7c339dbe1fd0948c30f35e1680562ec /include/net/tcp.h | |
parent | f0ceb0ed86b4792a4ed9d3438f5f7572e48f9803 (diff) | |
download | linux-fsl-qoriq-ef9da47c7cc64d69526331f315e76b5680d4048f.tar.xz |
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>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 220f54c..ea81572 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -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; } |