]> err.no Git - linux-2.6/blobdiff - include/net/tcp.h
KVM: Add fpu get/set operations
[linux-2.6] / include / net / tcp.h
index c6ecd455edabc01792081dae27bda5cd6db9b8ea..ef8f9d4dae8501459ce9a9f4fb38dff5407d3945 100644 (file)
@@ -1199,9 +1199,14 @@ static inline struct sk_buff *tcp_send_head(struct sock *sk)
 
 static inline void tcp_advance_send_head(struct sock *sk, struct sk_buff *skb)
 {
+       struct tcp_sock *tp = tcp_sk(sk);
+
        sk->sk_send_head = skb->next;
        if (sk->sk_send_head == (struct sk_buff *)&sk->sk_write_queue)
                sk->sk_send_head = NULL;
+       /* Don't override Nagle indefinately with F-RTO */
+       if (tp->frto_counter == 2)
+               tp->frto_counter = 3;
 }
 
 static inline void tcp_check_send_head(struct sock *sk, struct sk_buff *skb_unlinked)