Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=746aa32d280084dbd520249170852e4616799928
Commit:     746aa32d280084dbd520249170852e4616799928
Parent:     f0163ac45b40bd032b877c747796146d52d4e800
Author:     Ilpo J�rvinen <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 13 21:01:23 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Nov 13 21:01:23 2007 -0800

    [TCP] FRTO: Limit snd_cwnd if TCP was application limited
    
    Otherwise TCP might violate packet ordering principles that FRTO
    is based on. If conventional recovery path is chosen, this won't
    be significant at all. In practice, any small enough value will
    be sufficient to provide proper operation for FRTO, yet other
    users of snd_cwnd might benefit from a "close enough" value.
    
    FRTO's formula is now equal to what tcp_enter_cwr() uses.
    
    FRTO used to check application limitedness a bit differently but
    I changed that in commit 575ee7140dabe9b9c4f66f4f867039b97e548867
    and as a result checking for application limitedness became
    completely non-existing.
    
    Signed-off-by: Ilpo J�rvinen <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv4/tcp_input.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 20c9440..b59da53 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -1669,6 +1669,9 @@ void tcp_enter_frto(struct sock *sk)
        }
        tcp_verify_left_out(tp);
 
+       /* Too bad if TCP was application limited */
+       tp->snd_cwnd = min(tp->snd_cwnd, tcp_packets_in_flight(tp) + 1);
+
        /* Earlier loss recovery underway (see RFC4138; Appendix B).
         * The last condition is necessary at least in tp->frto_counter case.
         */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to