aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_veno.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_veno.c')
-rw-r--r--net/ipv4/tcp_veno.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/ipv4/tcp_veno.c b/net/ipv4/tcp_veno.c
index 1091671751c4..11b42a7135c1 100644
--- a/net/ipv4/tcp_veno.c
+++ b/net/ipv4/tcp_veno.c
@@ -199,17 +199,10 @@ static u32 tcp_veno_ssthresh(struct sock *sk)
199 return max(tp->snd_cwnd >> 1U, 2U); 199 return max(tp->snd_cwnd >> 1U, 2U);
200} 200}
201 201
202static u32 tcp_veno_min_cwnd(struct sock * sk)
203{
204 const struct tcp_sock *tp = tcp_sk(sk);
205 return tp->snd_ssthresh;
206}
207
208static struct tcp_congestion_ops tcp_veno = { 202static struct tcp_congestion_ops tcp_veno = {
209 .init = tcp_veno_init, 203 .init = tcp_veno_init,
210 .ssthresh = tcp_veno_ssthresh, 204 .ssthresh = tcp_veno_ssthresh,
211 .cong_avoid = tcp_veno_cong_avoid, 205 .cong_avoid = tcp_veno_cong_avoid,
212 .min_cwnd = tcp_veno_min_cwnd,
213 .rtt_sample = tcp_veno_rtt_calc, 206 .rtt_sample = tcp_veno_rtt_calc,
214 .set_state = tcp_veno_state, 207 .set_state = tcp_veno_state,
215 .cwnd_event = tcp_veno_cwnd_event, 208 .cwnd_event = tcp_veno_cwnd_event,