diff options
Diffstat (limited to 'net/ipv4/tcp_vegas.c')
-rw-r--r-- | net/ipv4/tcp_vegas.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c index 007304e9984..be24d6ee34b 100644 --- a/net/ipv4/tcp_vegas.c +++ b/net/ipv4/tcp_vegas.c | |||
@@ -162,14 +162,13 @@ void tcp_vegas_cwnd_event(struct sock *sk, enum tcp_ca_event event) | |||
162 | } | 162 | } |
163 | EXPORT_SYMBOL_GPL(tcp_vegas_cwnd_event); | 163 | EXPORT_SYMBOL_GPL(tcp_vegas_cwnd_event); |
164 | 164 | ||
165 | static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, | 165 | static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, u32 in_flight) |
166 | u32 in_flight, int flag) | ||
167 | { | 166 | { |
168 | struct tcp_sock *tp = tcp_sk(sk); | 167 | struct tcp_sock *tp = tcp_sk(sk); |
169 | struct vegas *vegas = inet_csk_ca(sk); | 168 | struct vegas *vegas = inet_csk_ca(sk); |
170 | 169 | ||
171 | if (!vegas->doing_vegas_now) | 170 | if (!vegas->doing_vegas_now) |
172 | return tcp_reno_cong_avoid(sk, ack, in_flight, flag); | 171 | return tcp_reno_cong_avoid(sk, ack, in_flight); |
173 | 172 | ||
174 | /* The key players are v_beg_snd_una and v_beg_snd_nxt. | 173 | /* The key players are v_beg_snd_una and v_beg_snd_nxt. |
175 | * | 174 | * |
@@ -228,7 +227,7 @@ static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, | |||
228 | /* We don't have enough RTT samples to do the Vegas | 227 | /* We don't have enough RTT samples to do the Vegas |
229 | * calculation, so we'll behave like Reno. | 228 | * calculation, so we'll behave like Reno. |
230 | */ | 229 | */ |
231 | tcp_reno_cong_avoid(sk, ack, in_flight, flag); | 230 | tcp_reno_cong_avoid(sk, ack, in_flight); |
232 | } else { | 231 | } else { |
233 | u32 rtt, target_cwnd, diff; | 232 | u32 rtt, target_cwnd, diff; |
234 | 233 | ||