tcp: stretch ACK fixes in Veno prep
No code logic has been changed in this patch. Signed-off-by: Pengcheng Yang <yangpc@wangsu.com> Acked-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5415e3c37a
commit
d861b5c753
|
@ -155,7 +155,9 @@ static void tcp_veno_cong_avoid(struct sock *sk, u32 ack, u32 acked)
|
|||
if (tcp_in_slow_start(tp)) {
|
||||
/* Slow start. */
|
||||
tcp_slow_start(tp, acked);
|
||||
} else {
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Congestion avoidance. */
|
||||
if (veno->diff < beta) {
|
||||
/* In the "non-congestive state", increase cwnd
|
||||
|
@ -177,7 +179,7 @@ static void tcp_veno_cong_avoid(struct sock *sk, u32 ack, u32 acked)
|
|||
} else
|
||||
tp->snd_cwnd_cnt++;
|
||||
}
|
||||
}
|
||||
done:
|
||||
if (tp->snd_cwnd < 2)
|
||||
tp->snd_cwnd = 2;
|
||||
else if (tp->snd_cwnd > tp->snd_cwnd_clamp)
|
||||
|
|
Loading…
Reference in New Issue