Re: incoherence in tcp_input.c#tcp_fast_retrans

Michael B. Trausch (davem@redhat.com)
Thu, 6 May 1999 10:04:38 -0700


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/