diff options
author | Hoang Tran <tranviethoang.vn@gmail.com> | 2017-09-27 18:30:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-29 06:07:00 +0100 |
commit | cf5d74b85ef40c202c76d90959db4d850f301b95 (patch) | |
tree | c9f027b9870d61b6e3431302ffc22821150fe68a /net | |
parent | 5af48b59f35cf712793badabe1a574a0d0ce3bd3 (diff) | |
download | linux-cf5d74b85ef40c202c76d90959db4d850f301b95.tar.bz2 |
tcp: fix under-evaluated ssthresh in TCP Vegas
With the commit 76174004a0f19785 (tcp: do not slow start when cwnd equals
ssthresh), the comparison to the reduced cwnd in tcp_vegas_ssthresh() would
under-evaluate the ssthresh.
Signed-off-by: Hoang Tran <hoang.tran@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp_vegas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c index 218cfcc77650..ee113ff15fd0 100644 --- a/net/ipv4/tcp_vegas.c +++ b/net/ipv4/tcp_vegas.c @@ -158,7 +158,7 @@ EXPORT_SYMBOL_GPL(tcp_vegas_cwnd_event); static inline u32 tcp_vegas_ssthresh(struct tcp_sock *tp) { - return min(tp->snd_ssthresh, tp->snd_cwnd-1); + return min(tp->snd_ssthresh, tp->snd_cwnd); } static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, u32 acked) |