diff options
Diffstat (limited to 'net/ipv4/tcp_illinois.c')
| -rw-r--r-- | net/ipv4/tcp_illinois.c | 9 | 
1 files changed, 3 insertions, 6 deletions
diff --git a/net/ipv4/tcp_illinois.c b/net/ipv4/tcp_illinois.c index 834857f3c87..5999b3972e6 100644 --- a/net/ipv4/tcp_illinois.c +++ b/net/ipv4/tcp_illinois.c @@ -23,7 +23,6 @@  #define ALPHA_MIN	((3*ALPHA_SCALE)/10)	/* ~0.3 */  #define ALPHA_MAX	(10*ALPHA_SCALE)	/* 10.0 */  #define ALPHA_BASE	ALPHA_SCALE		/* 1.0 */ -#define U32_MAX		((u32)~0U)  #define RTT_MAX		(U32_MAX / ALPHA_MAX)	/* 3.3 secs */  #define BETA_SHIFT	6 @@ -256,7 +255,7 @@ static void tcp_illinois_state(struct sock *sk, u8 new_state)  /*   * Increase window in response to successful acknowledgment.   */ -static void tcp_illinois_cong_avoid(struct sock *sk, u32 ack, u32 in_flight) +static void tcp_illinois_cong_avoid(struct sock *sk, u32 ack, u32 acked)  {  	struct tcp_sock *tp = tcp_sk(sk);  	struct illinois *ca = inet_csk_ca(sk); @@ -265,12 +264,12 @@ static void tcp_illinois_cong_avoid(struct sock *sk, u32 ack, u32 in_flight)  		update_params(sk);  	/* RFC2861 only increase cwnd if fully utilized */ -	if (!tcp_is_cwnd_limited(sk, in_flight)) +	if (!tcp_is_cwnd_limited(sk))  		return;  	/* In slow start */  	if (tp->snd_cwnd <= tp->snd_ssthresh) -		tcp_slow_start(tp); +		tcp_slow_start(tp, acked);  	else {  		u32 delta; @@ -325,10 +324,8 @@ static void tcp_illinois_info(struct sock *sk, u32 ext,  }  static struct tcp_congestion_ops tcp_illinois __read_mostly = { -	.flags		= TCP_CONG_RTT_STAMP,  	.init		= tcp_illinois_init,  	.ssthresh	= tcp_illinois_ssthresh, -	.min_cwnd	= tcp_reno_min_cwnd,  	.cong_avoid	= tcp_illinois_cong_avoid,  	.set_state	= tcp_illinois_state,  	.get_info	= tcp_illinois_info,  | 
