mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 17:53:56 +08:00
[TCP] tcp_vegas: Fix slow start
Vegas' slow start was only adding one MSS per RTT rather than one for every ack. Slow start behavior should now match Reno. Signed-off-by: Thomas Young <tyo@ee.mu.oz.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9369986306
commit
74cb879822
@ -330,6 +330,10 @@ static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack,
|
|||||||
vegas->cntRTT = 0;
|
vegas->cntRTT = 0;
|
||||||
vegas->minRTT = 0x7fffffff;
|
vegas->minRTT = 0x7fffffff;
|
||||||
}
|
}
|
||||||
|
/* Use normal slow start */
|
||||||
|
else if (tp->snd_cwnd <= tp->snd_ssthresh)
|
||||||
|
tcp_slow_start(tp);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Extract info for Tcp socket info provided via netlink. */
|
/* Extract info for Tcp socket info provided via netlink. */
|
||||||
|
Loading…
Reference in New Issue
Block a user