Skip to contentSkip to conversation

tcp_vegas.c ssthresh bug fix

PATCH David Miller 1 participant 1 message May 19, 2009 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20090519101643.GA12429@scriptng

David Miller

author maintainer
#1 lore raw

From: Douglas Leith <[email protected]>
Date: Tue, 19 May 2009 11:16:43 +0100

net/ipv4/tcp_vegas.c static void tcp_vegas_cong_avoid(struct · line 252

Quoted 9 lines
net/ipv4/tcp_vegas.c renamed from net/ipv4/tcp_vegas.c.orig +2 -2
@@ -224 +224 @@ static void tcp_vegas_cong_avoid(struct 
-			if (diff > gamma && tp->snd_ssthresh > 2 ) {
+			if (diff > gamma && tp->snd_cwnd <= tp->snd_ssthresh) {
@@ -228 +227,0 @@ static void tcp_vegas_cong_avoid(struct 
-				tp->snd_ssthresh = 2;
@@ -252,0 +252 @@ static void tcp_vegas_cong_avoid(struct 
+					tp->snd_ssthresh = min(tp->snd_ssthresh, tp->snd_cwnd-1);

This patch is severely corrupted by your email client, or by something else, and it's therefore not going to apply to anything.

Please read carefully Documentation/email-clients.txt and Documentation/SubmittingPatches before trying to submit this again.

Thank you.