Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=832e3ca62d6ee1893db05f5202c24ae5331e19ba
Commit:     832e3ca62d6ee1893db05f5202c24ae5331e19ba
Parent:     e1b4b9f3986b80d5785d91dbd8d72cfaf9fd1117
Author:     Ian McDonald <[EMAIL PROTECTED]>
AuthorDate: Tue Dec 12 00:47:59 2006 -0200
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Dec 13 16:48:24 2006 -0800

    [DCCP] ccid3: return value in ccid3_hc_rx_calc_first_li
    
    In a recent patch we introduced invalid return codes which will result in 
the
    opposite of what is intended (i.e. send more packets in face of peculiar
    network conditions).
    
    This fixes it by returning ~0 which means not calculated as per
    dccp_li_hist_calc_i_mean.
    
    Signed-off-by: Ian McDonald <[EMAIL PROTECTED]>
    Signed-off-by: Arnaldo Carvalho de Melo <[EMAIL PROTECTED]>
---
 net/dccp/ccids/ccid3.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c
index fa6b753..40402c5 100644
--- a/net/dccp/ccids/ccid3.c
+++ b/net/dccp/ccids/ccid3.c
@@ -845,8 +845,8 @@ found:
         * Find some p such that f(p) = fval; return 1/p [RFC 3448, 6.3.1].
         */
        if (rtt == 0) {                 /* would result in divide-by-zero */
-               DCCP_WARN("RTT==0, returning 1/p = 1\n");
-               return 1000000;
+               DCCP_WARN("RTT==0\n");
+               return ~0;
        }
 
        dccp_timestamp(sk, &tstamp);
@@ -858,7 +858,7 @@ found:
                DCCP_WARN("X_recv==0\n");
                if ((x_recv = hcrx->ccid3hcrx_x_recv) == 0) {
                        DCCP_BUG("stored value of X_recv is zero");
-                       return 1000000;
+                       return ~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