diff options
| author | James Morris <james.l.morris@oracle.com> | 2017-11-29 12:47:41 +1100 | 
|---|---|---|
| committer | James Morris <james.l.morris@oracle.com> | 2017-11-29 12:47:41 +1100 | 
| commit | cf40a76e7d5874bb25f4404eecc58a2e033af885 (patch) | |
| tree | 8fd81cbea03c87b3d41d7ae5b1d11eadd35d6ef5 /net/ipv4/tcp_bic.c | |
| parent | ab5348c9c23cd253f5902980d2d8fe067dc24c82 (diff) | |
| parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff) | |
Merge tag 'v4.15-rc1' into next-seccomp
Linux 4.15-rc1
Diffstat (limited to 'net/ipv4/tcp_bic.c')
| -rw-r--r-- | net/ipv4/tcp_bic.c | 14 | 
1 files changed, 1 insertions, 13 deletions
| diff --git a/net/ipv4/tcp_bic.c b/net/ipv4/tcp_bic.c index 609965f0e298..fc3614377413 100644 --- a/net/ipv4/tcp_bic.c +++ b/net/ipv4/tcp_bic.c @@ -49,7 +49,6 @@ MODULE_PARM_DESC(smooth_part, "log(B/(B*Smin))/log(B/(B-1))+B, # of RTT from Wma  struct bictcp {  	u32	cnt;		/* increase cwnd by 1 after ACKs */  	u32	last_max_cwnd;	/* last maximum snd_cwnd */ -	u32	loss_cwnd;	/* congestion window at last loss */  	u32	last_cwnd;	/* the last snd_cwnd */  	u32	last_time;	/* time when updated last_cwnd */  	u32	epoch_start;	/* beginning of an epoch */ @@ -72,7 +71,6 @@ static void bictcp_init(struct sock *sk)  	struct bictcp *ca = inet_csk_ca(sk);  	bictcp_reset(ca); -	ca->loss_cwnd = 0;  	if (initial_ssthresh)  		tcp_sk(sk)->snd_ssthresh = initial_ssthresh; @@ -172,22 +170,12 @@ static u32 bictcp_recalc_ssthresh(struct sock *sk)  	else  		ca->last_max_cwnd = tp->snd_cwnd; -	ca->loss_cwnd = tp->snd_cwnd; -  	if (tp->snd_cwnd <= low_window)  		return max(tp->snd_cwnd >> 1U, 2U);  	else  		return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U);  } -static u32 bictcp_undo_cwnd(struct sock *sk) -{ -	const struct tcp_sock *tp = tcp_sk(sk); -	const struct bictcp *ca = inet_csk_ca(sk); - -	return max(tp->snd_cwnd, ca->loss_cwnd); -} -  static void bictcp_state(struct sock *sk, u8 new_state)  {  	if (new_state == TCP_CA_Loss) @@ -214,7 +202,7 @@ static struct tcp_congestion_ops bictcp __read_mostly = {  	.ssthresh	= bictcp_recalc_ssthresh,  	.cong_avoid	= bictcp_cong_avoid,  	.set_state	= bictcp_state, -	.undo_cwnd	= bictcp_undo_cwnd, +	.undo_cwnd	= tcp_reno_undo_cwnd,  	.pkts_acked     = bictcp_acked,  	.owner		= THIS_MODULE,  	.name		= "bic", | 
