aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_bic.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_bic.c')
-rw-r--r--net/ipv4/tcp_bic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/tcp_bic.c b/net/ipv4/tcp_bic.c
index f45e1c242440..821846fb0a7e 100644
--- a/net/ipv4/tcp_bic.c
+++ b/net/ipv4/tcp_bic.c
@@ -140,7 +140,8 @@ static inline void bictcp_update(struct bictcp *ca, u32 cwnd)
140 ca->cnt = 1; 140 ca->cnt = 1;
141} 141}
142 142
143static void bictcp_cong_avoid(struct sock *sk, u32 ack, u32 in_flight) 143static void bictcp_cong_avoid(struct sock *sk, u32 ack, u32 acked,
144 u32 in_flight)
144{ 145{
145 struct tcp_sock *tp = tcp_sk(sk); 146 struct tcp_sock *tp = tcp_sk(sk);
146 struct bictcp *ca = inet_csk_ca(sk); 147 struct bictcp *ca = inet_csk_ca(sk);
@@ -149,7 +150,7 @@ static void bictcp_cong_avoid(struct sock *sk, u32 ack, u32 in_flight)
149 return; 150 return;
150 151
151 if (tp->snd_cwnd <= tp->snd_ssthresh) 152 if (tp->snd_cwnd <= tp->snd_ssthresh)
152 tcp_slow_start(tp); 153 tcp_slow_start(tp, acked);
153 else { 154 else {
154 bictcp_update(ca, tp->snd_cwnd); 155 bictcp_update(ca, tp->snd_cwnd);
155 tcp_cong_avoid_ai(tp, ca->cnt); 156 tcp_cong_avoid_ai(tp, ca->cnt);