lkml.org 
[lkml]   [1999]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: incoherence in tcp_input.c#tcp_fast_retrans
   Date: Thu, 6 May 1999 12:00:35 +0200
From: Florent Villard <villard@crm.mot.com>

tp->snd_ssthresh = max(min(tp->snd_wnd, tp->snd_cwnd) >> 1, 2);

...

So as the tp->snd_wnd value is not in the right unit, maybe

max(tp->snd_cwnd >> 1, 2)

would be sufficient, waiting for a better solution.

No, that was the original bug I was trying to fix with the first line.

The fix is to divide tp->snd_wnd by the current connection mss.

Later,
David S. Miller
davem@redhat.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.051 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site