diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_bic.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_cubic.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_highspeed.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_htcp.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_hybla.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_illinois.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_lp.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_scalable.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_vegas.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_veno.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_westwood.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_yeah.c | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/net/ipv4/tcp_bic.c b/net/ipv4/tcp_bic.c index 3b53fd1af23f..6187eb4d1dcf 100644 --- a/net/ipv4/tcp_bic.c +++ b/net/ipv4/tcp_bic.c | |||
@@ -209,7 +209,7 @@ static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt) | |||
209 | } | 209 | } |
210 | 210 | ||
211 | 211 | ||
212 | static struct tcp_congestion_ops bictcp = { | 212 | static struct tcp_congestion_ops bictcp __read_mostly = { |
213 | .init = bictcp_init, | 213 | .init = bictcp_init, |
214 | .ssthresh = bictcp_recalc_ssthresh, | 214 | .ssthresh = bictcp_recalc_ssthresh, |
215 | .cong_avoid = bictcp_cong_avoid, | 215 | .cong_avoid = bictcp_cong_avoid, |
diff --git a/net/ipv4/tcp_cubic.c b/net/ipv4/tcp_cubic.c index 71d5f2f29fa6..62f775cb0863 100644 --- a/net/ipv4/tcp_cubic.c +++ b/net/ipv4/tcp_cubic.c | |||
@@ -405,7 +405,7 @@ static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt_us) | |||
405 | hystart_update(sk, delay); | 405 | hystart_update(sk, delay); |
406 | } | 406 | } |
407 | 407 | ||
408 | static struct tcp_congestion_ops cubictcp = { | 408 | static struct tcp_congestion_ops cubictcp __read_mostly = { |
409 | .init = bictcp_init, | 409 | .init = bictcp_init, |
410 | .ssthresh = bictcp_recalc_ssthresh, | 410 | .ssthresh = bictcp_recalc_ssthresh, |
411 | .cong_avoid = bictcp_cong_avoid, | 411 | .cong_avoid = bictcp_cong_avoid, |
diff --git a/net/ipv4/tcp_highspeed.c b/net/ipv4/tcp_highspeed.c index 8b6caaf75bb9..30f27f6b3655 100644 --- a/net/ipv4/tcp_highspeed.c +++ b/net/ipv4/tcp_highspeed.c | |||
@@ -158,7 +158,7 @@ static u32 hstcp_ssthresh(struct sock *sk) | |||
158 | } | 158 | } |
159 | 159 | ||
160 | 160 | ||
161 | static struct tcp_congestion_ops tcp_highspeed = { | 161 | 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, |
diff --git a/net/ipv4/tcp_htcp.c b/net/ipv4/tcp_htcp.c index 7c94a4955416..c1a8175361e8 100644 --- a/net/ipv4/tcp_htcp.c +++ b/net/ipv4/tcp_htcp.c | |||
@@ -284,7 +284,7 @@ static void htcp_state(struct sock *sk, u8 new_state) | |||
284 | } | 284 | } |
285 | } | 285 | } |
286 | 286 | ||
287 | static struct tcp_congestion_ops htcp = { | 287 | static struct tcp_congestion_ops htcp __read_mostly = { |
288 | .init = htcp_init, | 288 | .init = htcp_init, |
289 | .ssthresh = htcp_recalc_ssthresh, | 289 | .ssthresh = htcp_recalc_ssthresh, |
290 | .cong_avoid = htcp_cong_avoid, | 290 | .cong_avoid = htcp_cong_avoid, |
diff --git a/net/ipv4/tcp_hybla.c b/net/ipv4/tcp_hybla.c index 377bc9349371..fe3ecf484b44 100644 --- a/net/ipv4/tcp_hybla.c +++ b/net/ipv4/tcp_hybla.c | |||
@@ -162,7 +162,7 @@ static void hybla_cong_avoid(struct sock *sk, u32 ack, u32 in_flight) | |||
162 | tp->snd_cwnd = min_t(u32, tp->snd_cwnd, tp->snd_cwnd_clamp); | 162 | tp->snd_cwnd = min_t(u32, tp->snd_cwnd, tp->snd_cwnd_clamp); |
163 | } | 163 | } |
164 | 164 | ||
165 | static struct tcp_congestion_ops tcp_hybla = { | 165 | static struct tcp_congestion_ops tcp_hybla __read_mostly = { |
166 | .init = hybla_init, | 166 | .init = hybla_init, |
167 | .ssthresh = tcp_reno_ssthresh, | 167 | .ssthresh = tcp_reno_ssthresh, |
168 | .min_cwnd = tcp_reno_min_cwnd, | 168 | .min_cwnd = tcp_reno_min_cwnd, |
diff --git a/net/ipv4/tcp_illinois.c b/net/ipv4/tcp_illinois.c index 00ca688d8964..813b43a76fec 100644 --- a/net/ipv4/tcp_illinois.c +++ b/net/ipv4/tcp_illinois.c | |||
@@ -322,7 +322,7 @@ static void tcp_illinois_info(struct sock *sk, u32 ext, | |||
322 | } | 322 | } |
323 | } | 323 | } |
324 | 324 | ||
325 | static struct tcp_congestion_ops tcp_illinois = { | 325 | static struct tcp_congestion_ops tcp_illinois __read_mostly = { |
326 | .flags = TCP_CONG_RTT_STAMP, | 326 | .flags = TCP_CONG_RTT_STAMP, |
327 | .init = tcp_illinois_init, | 327 | .init = tcp_illinois_init, |
328 | .ssthresh = tcp_illinois_ssthresh, | 328 | .ssthresh = tcp_illinois_ssthresh, |
diff --git a/net/ipv4/tcp_lp.c b/net/ipv4/tcp_lp.c index de870377fbba..656d431c99ad 100644 --- a/net/ipv4/tcp_lp.c +++ b/net/ipv4/tcp_lp.c | |||
@@ -313,7 +313,7 @@ static void tcp_lp_pkts_acked(struct sock *sk, u32 num_acked, s32 rtt_us) | |||
313 | lp->last_drop = tcp_time_stamp; | 313 | lp->last_drop = tcp_time_stamp; |
314 | } | 314 | } |
315 | 315 | ||
316 | static struct tcp_congestion_ops tcp_lp = { | 316 | static struct tcp_congestion_ops tcp_lp __read_mostly = { |
317 | .flags = TCP_CONG_RTT_STAMP, | 317 | .flags = TCP_CONG_RTT_STAMP, |
318 | .init = tcp_lp_init, | 318 | .init = tcp_lp_init, |
319 | .ssthresh = tcp_reno_ssthresh, | 319 | .ssthresh = tcp_reno_ssthresh, |
diff --git a/net/ipv4/tcp_scalable.c b/net/ipv4/tcp_scalable.c index a76513779e2b..8ce55b8aaec8 100644 --- a/net/ipv4/tcp_scalable.c +++ b/net/ipv4/tcp_scalable.c | |||
@@ -35,7 +35,7 @@ static u32 tcp_scalable_ssthresh(struct sock *sk) | |||
35 | } | 35 | } |
36 | 36 | ||
37 | 37 | ||
38 | static struct tcp_congestion_ops tcp_scalable = { | 38 | static struct tcp_congestion_ops tcp_scalable __read_mostly = { |
39 | .ssthresh = tcp_scalable_ssthresh, | 39 | .ssthresh = tcp_scalable_ssthresh, |
40 | .cong_avoid = tcp_scalable_cong_avoid, | 40 | .cong_avoid = tcp_scalable_cong_avoid, |
41 | .min_cwnd = tcp_reno_min_cwnd, | 41 | .min_cwnd = tcp_reno_min_cwnd, |
diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c index c6743eec9b7d..80fa2bfd7ede 100644 --- a/net/ipv4/tcp_vegas.c +++ b/net/ipv4/tcp_vegas.c | |||
@@ -304,7 +304,7 @@ void tcp_vegas_get_info(struct sock *sk, u32 ext, struct sk_buff *skb) | |||
304 | } | 304 | } |
305 | EXPORT_SYMBOL_GPL(tcp_vegas_get_info); | 305 | EXPORT_SYMBOL_GPL(tcp_vegas_get_info); |
306 | 306 | ||
307 | static struct tcp_congestion_ops tcp_vegas = { | 307 | static struct tcp_congestion_ops tcp_vegas __read_mostly = { |
308 | .flags = TCP_CONG_RTT_STAMP, | 308 | .flags = TCP_CONG_RTT_STAMP, |
309 | .init = tcp_vegas_init, | 309 | .init = tcp_vegas_init, |
310 | .ssthresh = tcp_reno_ssthresh, | 310 | .ssthresh = tcp_reno_ssthresh, |
diff --git a/net/ipv4/tcp_veno.c b/net/ipv4/tcp_veno.c index 38bc0b52d745..ac43cd747bce 100644 --- a/net/ipv4/tcp_veno.c +++ b/net/ipv4/tcp_veno.c | |||
@@ -201,7 +201,7 @@ static u32 tcp_veno_ssthresh(struct sock *sk) | |||
201 | return max(tp->snd_cwnd >> 1U, 2U); | 201 | return max(tp->snd_cwnd >> 1U, 2U); |
202 | } | 202 | } |
203 | 203 | ||
204 | static struct tcp_congestion_ops tcp_veno = { | 204 | static struct tcp_congestion_ops tcp_veno __read_mostly = { |
205 | .flags = TCP_CONG_RTT_STAMP, | 205 | .flags = TCP_CONG_RTT_STAMP, |
206 | .init = tcp_veno_init, | 206 | .init = tcp_veno_init, |
207 | .ssthresh = tcp_veno_ssthresh, | 207 | .ssthresh = tcp_veno_ssthresh, |
diff --git a/net/ipv4/tcp_westwood.c b/net/ipv4/tcp_westwood.c index a534dda5456e..1b91bf48e277 100644 --- a/net/ipv4/tcp_westwood.c +++ b/net/ipv4/tcp_westwood.c | |||
@@ -272,7 +272,7 @@ static void tcp_westwood_info(struct sock *sk, u32 ext, | |||
272 | } | 272 | } |
273 | 273 | ||
274 | 274 | ||
275 | static struct tcp_congestion_ops tcp_westwood = { | 275 | 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, |
diff --git a/net/ipv4/tcp_yeah.c b/net/ipv4/tcp_yeah.c index a0f240358892..dc7f43179c9a 100644 --- a/net/ipv4/tcp_yeah.c +++ b/net/ipv4/tcp_yeah.c | |||
@@ -225,7 +225,7 @@ static u32 tcp_yeah_ssthresh(struct sock *sk) { | |||
225 | return tp->snd_cwnd - reduction; | 225 | return tp->snd_cwnd - reduction; |
226 | } | 226 | } |
227 | 227 | ||
228 | static struct tcp_congestion_ops tcp_yeah = { | 228 | static struct tcp_congestion_ops tcp_yeah __read_mostly = { |
229 | .flags = TCP_CONG_RTT_STAMP, | 229 | .flags = TCP_CONG_RTT_STAMP, |
230 | .init = tcp_yeah_init, | 230 | .init = tcp_yeah_init, |
231 | .ssthresh = tcp_yeah_ssthresh, | 231 | .ssthresh = tcp_yeah_ssthresh, |