aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/tcp_cong.c10
-rw-r--r--net/ipv4/tcp_highspeed.c1
-rw-r--r--net/ipv4/tcp_hybla.c1
-rw-r--r--net/ipv4/tcp_illinois.c1
-rw-r--r--net/ipv4/tcp_lp.c1
-rw-r--r--net/ipv4/tcp_scalable.c1
-rw-r--r--net/ipv4/tcp_vegas.c1
-rw-r--r--net/ipv4/tcp_westwood.c1
-rw-r--r--net/ipv4/tcp_yeah.c1
9 files changed, 0 insertions, 18 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);
diff --git a/net/ipv4/tcp_highspeed.c b/net/ipv4/tcp_highspeed.c
index 8ed9305dfdf4..8b9e7bad77c0 100644
--- a/net/ipv4/tcp_highspeed.c
+++ b/net/ipv4/tcp_highspeed.c
@@ -162,7 +162,6 @@ static struct tcp_congestion_ops tcp_highspeed __read_mostly = {
162 .init = hstcp_init, 162 .init = hstcp_init,
163 .ssthresh = hstcp_ssthresh, 163 .ssthresh = hstcp_ssthresh,
164 .cong_avoid = hstcp_cong_avoid, 164 .cong_avoid = hstcp_cong_avoid,
165 .min_cwnd = tcp_reno_min_cwnd,
166 165
167 .owner = THIS_MODULE, 166 .owner = THIS_MODULE,
168 .name = "highspeed" 167 .name = "highspeed"
diff --git a/net/ipv4/tcp_hybla.c b/net/ipv4/tcp_hybla.c
index 478fe82611bf..2a1a9e2a4e51 100644
--- a/net/ipv4/tcp_hybla.c
+++ b/net/ipv4/tcp_hybla.c
@@ -166,7 +166,6 @@ static void hybla_cong_avoid(struct sock *sk, u32 ack, u32 acked,
166static struct tcp_congestion_ops tcp_hybla __read_mostly = { 166static struct tcp_congestion_ops tcp_hybla __read_mostly = {
167 .init = hybla_init, 167 .init = hybla_init,
168 .ssthresh = tcp_reno_ssthresh, 168 .ssthresh = tcp_reno_ssthresh,
169 .min_cwnd = tcp_reno_min_cwnd,
170 .cong_avoid = hybla_cong_avoid, 169 .cong_avoid = hybla_cong_avoid,
171 .set_state = hybla_state, 170 .set_state = hybla_state,
172 171
diff --git a/net/ipv4/tcp_illinois.c b/net/ipv4/tcp_illinois.c
index e498a62b8f97..be047c63ca10 100644
--- a/net/ipv4/tcp_illinois.c
+++ b/net/ipv4/tcp_illinois.c
@@ -328,7 +328,6 @@ static struct tcp_congestion_ops tcp_illinois __read_mostly = {
328 .flags = TCP_CONG_RTT_STAMP, 328 .flags = TCP_CONG_RTT_STAMP,
329 .init = tcp_illinois_init, 329 .init = tcp_illinois_init,
330 .ssthresh = tcp_illinois_ssthresh, 330 .ssthresh = tcp_illinois_ssthresh,
331 .min_cwnd = tcp_reno_min_cwnd,
332 .cong_avoid = tcp_illinois_cong_avoid, 331 .cong_avoid = tcp_illinois_cong_avoid,
333 .set_state = tcp_illinois_state, 332 .set_state = tcp_illinois_state,
334 .get_info = tcp_illinois_info, 333 .get_info = tcp_illinois_info,
diff --git a/net/ipv4/tcp_lp.c b/net/ipv4/tcp_lp.c
index 991d62a2f9bb..503798f2fcd6 100644
--- a/net/ipv4/tcp_lp.c
+++ b/net/ipv4/tcp_lp.c
@@ -319,7 +319,6 @@ static struct tcp_congestion_ops tcp_lp __read_mostly = {
319 .init = tcp_lp_init, 319 .init = tcp_lp_init,
320 .ssthresh = tcp_reno_ssthresh, 320 .ssthresh = tcp_reno_ssthresh,
321 .cong_avoid = tcp_lp_cong_avoid, 321 .cong_avoid = tcp_lp_cong_avoid,
322 .min_cwnd = tcp_reno_min_cwnd,
323 .pkts_acked = tcp_lp_pkts_acked, 322 .pkts_acked = tcp_lp_pkts_acked,
324 323
325 .owner = THIS_MODULE, 324 .owner = THIS_MODULE,
diff --git a/net/ipv4/tcp_scalable.c b/net/ipv4/tcp_scalable.c
index 19ea6c2951f3..0ac50836da4d 100644
--- a/net/ipv4/tcp_scalable.c
+++ b/net/ipv4/tcp_scalable.c
@@ -39,7 +39,6 @@ static u32 tcp_scalable_ssthresh(struct sock *sk)
39static struct tcp_congestion_ops tcp_scalable __read_mostly = { 39static struct tcp_congestion_ops tcp_scalable __read_mostly = {
40 .ssthresh = tcp_scalable_ssthresh, 40 .ssthresh = tcp_scalable_ssthresh,
41 .cong_avoid = tcp_scalable_cong_avoid, 41 .cong_avoid = tcp_scalable_cong_avoid,
42 .min_cwnd = tcp_reno_min_cwnd,
43 42
44 .owner = THIS_MODULE, 43 .owner = THIS_MODULE,
45 .name = "scalable", 44 .name = "scalable",
diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c
index 06cae62bf208..a022c17c9cf1 100644
--- a/net/ipv4/tcp_vegas.c
+++ b/net/ipv4/tcp_vegas.c
@@ -310,7 +310,6 @@ static struct tcp_congestion_ops tcp_vegas __read_mostly = {
310 .init = tcp_vegas_init, 310 .init = tcp_vegas_init,
311 .ssthresh = tcp_reno_ssthresh, 311 .ssthresh = tcp_reno_ssthresh,
312 .cong_avoid = tcp_vegas_cong_avoid, 312 .cong_avoid = tcp_vegas_cong_avoid,
313 .min_cwnd = tcp_reno_min_cwnd,
314 .pkts_acked = tcp_vegas_pkts_acked, 313 .pkts_acked = tcp_vegas_pkts_acked,
315 .set_state = tcp_vegas_state, 314 .set_state = tcp_vegas_state,
316 .cwnd_event = tcp_vegas_cwnd_event, 315 .cwnd_event = tcp_vegas_cwnd_event,
diff --git a/net/ipv4/tcp_westwood.c b/net/ipv4/tcp_westwood.c
index 76a1e23259e1..b94a04ae2ed5 100644
--- a/net/ipv4/tcp_westwood.c
+++ b/net/ipv4/tcp_westwood.c
@@ -276,7 +276,6 @@ static struct tcp_congestion_ops tcp_westwood __read_mostly = {
276 .init = tcp_westwood_init, 276 .init = tcp_westwood_init,
277 .ssthresh = tcp_reno_ssthresh, 277 .ssthresh = tcp_reno_ssthresh,
278 .cong_avoid = tcp_reno_cong_avoid, 278 .cong_avoid = tcp_reno_cong_avoid,
279 .min_cwnd = tcp_westwood_bw_rttmin,
280 .cwnd_event = tcp_westwood_event, 279 .cwnd_event = tcp_westwood_event,
281 .get_info = tcp_westwood_info, 280 .get_info = tcp_westwood_info,
282 .pkts_acked = tcp_westwood_pkts_acked, 281 .pkts_acked = tcp_westwood_pkts_acked,
diff --git a/net/ipv4/tcp_yeah.c b/net/ipv4/tcp_yeah.c
index 1a8d271f994d..8eab02030ed0 100644
--- a/net/ipv4/tcp_yeah.c
+++ b/net/ipv4/tcp_yeah.c
@@ -231,7 +231,6 @@ static struct tcp_congestion_ops tcp_yeah __read_mostly = {
231 .init = tcp_yeah_init, 231 .init = tcp_yeah_init,
232 .ssthresh = tcp_yeah_ssthresh, 232 .ssthresh = tcp_yeah_ssthresh,
233 .cong_avoid = tcp_yeah_cong_avoid, 233 .cong_avoid = tcp_yeah_cong_avoid,
234 .min_cwnd = tcp_reno_min_cwnd,
235 .set_state = tcp_vegas_state, 234 .set_state = tcp_vegas_state,
236 .cwnd_event = tcp_vegas_cwnd_event, 235 .cwnd_event = tcp_vegas_cwnd_event,
237 .get_info = tcp_vegas_get_info, 236 .get_info = tcp_vegas_get_info,