Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b495613 authored by Thomas Young's avatar Thomas Young Committed by David S. Miller
Browse files

[TCP] Vegas: stop resetting rtt every ack



Move the resetting of rtt measurements to inside the once per RTT
block of code.

Signed-off-by: default avatarThomas Young <tyo@ee.mu.oz.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1f12bcc9
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -333,12 +333,12 @@ static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack,
			else if (tp->snd_cwnd > tp->snd_cwnd_clamp)
				tp->snd_cwnd = tp->snd_cwnd_clamp;
		}
	}

		/* Wipe the slate clean for the next RTT. */
		vegas->cntRTT = 0;
		vegas->minRTT = 0x7fffffff;
	}
}

/* Extract info for Tcp socket info provided via netlink. */
static void tcp_vegas_get_info(struct sock *sk, u32 ext,