aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_cong.c
diff options
context:
space:
mode:
authorStanislav Fomichev <stfomichev@yandex-team.ru>2014-02-12 08:35:21 -0500
committerDavid S. Miller <davem@davemloft.net>2014-02-13 18:22:34 -0500
commit45f7435968363816f8fc4c6abef692808534140d (patch)
treea4fa1938204a2967ceb54141927da8f8c57ff214 /net/ipv4/tcp_cong.c
parentf93f160b5a3546b6d3143894f63a326442071e48 (diff)
tcp: remove unused min_cwnd member of tcp_congestion_ops
Commit 684bad110757 "tcp: use PRR to reduce cwin in CWR state" removed all calls to min_cwnd, so we can safely remove it. Also, remove tcp_reno_min_cwnd because it was only used for min_cwnd. Signed-off-by: Stanislav Fomichev <stfomichev@yandex-team.ru> Acked-by: Yuchung Cheng <ycheng@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_cong.c')
-rw-r--r--net/ipv4/tcp_cong.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/net/ipv4/tcp_cong.c b/net/ipv4/tcp_cong.c
index ad37bf18ae4b..f49351edf97d 100644
--- a/net/ipv4/tcp_cong.c
+++ b/net/ipv4/tcp_cong.c
@@ -362,21 +362,12 @@ u32 tcp_reno_ssthresh(struct sock *sk)
362} 362}
363EXPORT_SYMBOL_GPL(tcp_reno_ssthresh); 363EXPORT_SYMBOL_GPL(tcp_reno_ssthresh);
364 364
365/* Lower bound on congestion window with halving. */
366u32 tcp_reno_min_cwnd(const struct sock *sk)
367{
368 const struct tcp_sock *tp = tcp_sk(sk);
369 return tp->snd_ssthresh/2;
370}
371EXPORT_SYMBOL_GPL(tcp_reno_min_cwnd);
372
373struct tcp_congestion_ops tcp_reno = { 365struct tcp_congestion_ops tcp_reno = {
374 .flags = TCP_CONG_NON_RESTRICTED, 366 .flags = TCP_CONG_NON_RESTRICTED,
375 .name = "reno", 367 .name = "reno",
376 .owner = THIS_MODULE, 368 .owner = THIS_MODULE,
377 .ssthresh = tcp_reno_ssthresh, 369 .ssthresh = tcp_reno_ssthresh,
378 .cong_avoid = tcp_reno_cong_avoid, 370 .cong_avoid = tcp_reno_cong_avoid,
379 .min_cwnd = tcp_reno_min_cwnd,
380}; 371};
381 372
382/* Initial congestion control used (until SYN) 373/* Initial congestion control used (until SYN)
@@ -388,6 +379,5 @@ struct tcp_congestion_ops tcp_init_congestion_ops = {
388 .owner = THIS_MODULE, 379 .owner = THIS_MODULE,
389 .ssthresh = tcp_reno_ssthresh, 380 .ssthresh = tcp_reno_ssthresh,
390 .cong_avoid = tcp_reno_cong_avoid, 381 .cong_avoid = tcp_reno_cong_avoid,
391 .min_cwnd = tcp_reno_min_cwnd,
392}; 382};
393EXPORT_SYMBOL_GPL(tcp_init_congestion_ops); 383EXPORT_SYMBOL_GPL(tcp_init_congestion_ops);