diff options
Diffstat (limited to 'net/ipv4/tcp_hybla.c')
-rw-r--r-- | net/ipv4/tcp_hybla.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/ipv4/tcp_hybla.c b/net/ipv4/tcp_hybla.c index a15a799bf768..d8f8f05a4951 100644 --- a/net/ipv4/tcp_hybla.c +++ b/net/ipv4/tcp_hybla.c | |||
@@ -87,8 +87,7 @@ static inline u32 hybla_fraction(u32 odds) | |||
87 | * o Give cwnd a new value based on the model proposed | 87 | * o Give cwnd a new value based on the model proposed |
88 | * o remember increments <1 | 88 | * o remember increments <1 |
89 | */ | 89 | */ |
90 | static void hybla_cong_avoid(struct sock *sk, u32 ack, u32 acked, | 90 | static void hybla_cong_avoid(struct sock *sk, u32 ack, u32 acked) |
91 | u32 in_flight) | ||
92 | { | 91 | { |
93 | struct tcp_sock *tp = tcp_sk(sk); | 92 | struct tcp_sock *tp = tcp_sk(sk); |
94 | struct hybla *ca = inet_csk_ca(sk); | 93 | struct hybla *ca = inet_csk_ca(sk); |
@@ -101,11 +100,11 @@ static void hybla_cong_avoid(struct sock *sk, u32 ack, u32 acked, | |||
101 | ca->minrtt_us = tp->srtt_us; | 100 | ca->minrtt_us = tp->srtt_us; |
102 | } | 101 | } |
103 | 102 | ||
104 | if (!tcp_is_cwnd_limited(sk, in_flight)) | 103 | if (!tcp_is_cwnd_limited(sk)) |
105 | return; | 104 | return; |
106 | 105 | ||
107 | if (!ca->hybla_en) { | 106 | if (!ca->hybla_en) { |
108 | tcp_reno_cong_avoid(sk, ack, acked, in_flight); | 107 | tcp_reno_cong_avoid(sk, ack, acked); |
109 | return; | 108 | return; |
110 | } | 109 | } |
111 | 110 | ||