]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/tcp.h
tcp: don't clear retransmit_skb_hint when not necessary
[linux-2.6-omap-h63xx.git] / include / net / tcp.h
index 220f54cf42ec4843f9e63cc65c509dced1542560..ea815723d414c0904169a70370597950ae143d4f 100644 (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;
 }