diff options
Diffstat (limited to 'net/ipv4/tcp_veno.c')
| -rw-r--r-- | net/ipv4/tcp_veno.c | 13 | 
1 files changed, 6 insertions, 7 deletions
diff --git a/net/ipv4/tcp_veno.c b/net/ipv4/tcp_veno.c index 38bc0b52d74..27b9825753d 100644 --- a/net/ipv4/tcp_veno.c +++ b/net/ipv4/tcp_veno.c @@ -114,18 +114,18 @@ static void tcp_veno_cwnd_event(struct sock *sk, enum tcp_ca_event event)  		tcp_veno_init(sk);  } -static void tcp_veno_cong_avoid(struct sock *sk, u32 ack, u32 in_flight) +static void tcp_veno_cong_avoid(struct sock *sk, u32 ack, u32 acked)  {  	struct tcp_sock *tp = tcp_sk(sk);  	struct veno *veno = inet_csk_ca(sk);  	if (!veno->doing_veno_now) { -		tcp_reno_cong_avoid(sk, ack, in_flight); +		tcp_reno_cong_avoid(sk, ack, acked);  		return;  	}  	/* limited by applications */ -	if (!tcp_is_cwnd_limited(sk, in_flight)) +	if (!tcp_is_cwnd_limited(sk))  		return;  	/* We do the Veno calculations only if we got enough rtt samples */ @@ -133,7 +133,7 @@ static void tcp_veno_cong_avoid(struct sock *sk, u32 ack, u32 in_flight)  		/* We don't have enough rtt samples to do the Veno  		 * calculation, so we'll behave like Reno.  		 */ -		tcp_reno_cong_avoid(sk, ack, in_flight); +		tcp_reno_cong_avoid(sk, ack, acked);  	} else {  		u64 target_cwnd;  		u32 rtt; @@ -152,7 +152,7 @@ static void tcp_veno_cong_avoid(struct sock *sk, u32 ack, u32 in_flight)  		if (tp->snd_cwnd <= tp->snd_ssthresh) {  			/* Slow start.  */ -			tcp_slow_start(tp); +			tcp_slow_start(tp, acked);  		} else {  			/* Congestion avoidance. */  			if (veno->diff < beta) { @@ -201,8 +201,7 @@ static u32 tcp_veno_ssthresh(struct sock *sk)  		return max(tp->snd_cwnd >> 1U, 2U);  } -static struct tcp_congestion_ops tcp_veno = { -	.flags		= TCP_CONG_RTT_STAMP, +static struct tcp_congestion_ops tcp_veno __read_mostly = {  	.init		= tcp_veno_init,  	.ssthresh	= tcp_veno_ssthresh,  	.cong_avoid	= tcp_veno_cong_avoid,  | 
