aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2008-09-21 00:25:15 -0400
committerDavid S. Miller <davem@davemloft.net>2008-09-21 00:25:15 -0400
commitef9da47c7cc64d69526331f315e76b5680d4048f (patch)
tree97407b83c7c339dbe1fd0948c30f35e1680562ec /include/net/tcp.h
parentf0ceb0ed86b4792a4ed9d3438f5f7572e48f9803 (diff)
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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 220f54cf42ec..ea815723d414 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1037,10 +1037,15 @@ static inline void tcp_mib_init(struct net *net)
1037} 1037}
1038 1038
1039/* from STCP */ 1039/* from STCP */
1040static inline void tcp_clear_all_retrans_hints(struct tcp_sock *tp) 1040static inline void tcp_clear_retrans_hints_partial(struct tcp_sock *tp)
1041{ 1041{
1042 tp->lost_skb_hint = NULL; 1042 tp->lost_skb_hint = NULL;
1043 tp->scoreboard_skb_hint = NULL; 1043 tp->scoreboard_skb_hint = NULL;
1044}
1045
1046static inline void tcp_clear_all_retrans_hints(struct tcp_sock *tp)
1047{
1048 tcp_clear_retrans_hints_partial(tp);
1044 tp->retransmit_skb_hint = NULL; 1049 tp->retransmit_skb_hint = NULL;
1045} 1050}
1046 1051