Commit d861b5c7 authored by Pengcheng Yang's avatar Pengcheng Yang Committed by David S. Miller
Browse files

tcp: stretch ACK fixes in Veno prep



No code logic has been changed in this patch.

Signed-off-by: default avatarPengcheng Yang <yangpc@wangsu.com>
Acked-by: default avatarNeal Cardwell <ncardwell@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5415e3c3
Loading
Loading
Loading
Loading
+23 −21
Original line number Diff line number Diff line
@@ -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)