Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3ccd3130b3f681a4aef6392327256786b3b6aa04
Commit:     3ccd3130b3f681a4aef6392327256786b3b6aa04
Parent:     61f1ab41b8ede8e2a26c349a4e3372100545c5ec
Author:     Ilpo Järvinen <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 31 04:43:32 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:00:20 2008 -0800

    [TCP]: Make invariant check complain about invalid sacked_out
    
    Earlier resolution for NewReno's sacked_out should now keep
    it small enough for this to become invariant-like check.
    
    Signed-off-by: Ilpo Järvinen <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv4/tcp_input.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 722c9cb..41f4b86 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -2504,11 +2504,8 @@ tcp_fastretrans_alert(struct sock *sk, int pkts_acked, 
int flag)
                                    (tcp_fackets_out(tp) > tp->reordering));
        int fast_rexmit = 0;
 
-       /* Some technical things:
-        * 1. Reno does not count dupacks (sacked_out) automatically. */
-       if (!tp->packets_out)
+       if (WARN_ON(!tp->packets_out && tp->sacked_out))
                tp->sacked_out = 0;
-
        if (WARN_ON(!tp->sacked_out && tp->fackets_out))
                tp->fackets_out = 0;
 
-
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