tcp: mark tcp_congestion_ops read_mostly
Subsystems (4)
PATCH 1/1 tcp: mark tcp_congestion_ops read_mostly
Signed-off-by Stephen Hemminger <[email protected]>
--- net/ipv4/tcp_bic.c | 2 +- net/ipv4/tcp_cubic.c | 2 +- net/ipv4/tcp_highspeed.c | 2 +- net/ipv4/tcp_htcp.c | 2 +- net/ipv4/tcp_hybla.c | 2 +- net/ipv4/tcp_illinois.c | 2 +- net/ipv4/tcp_lp.c | 2 +- net/ipv4/tcp_scalable.c | 2 +- net/ipv4/tcp_vegas.c | 2 +- net/ipv4/tcp_veno.c | 2 +- net/ipv4/tcp_westwood.c | 2 +- net/ipv4/tcp_yeah.c | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-)
net/ipv4/tcp_bic.c +1 -1
@@ -209,7 +209,7 @@ static void bictcp_acked(struct sock *sk } -static struct tcp_congestion_ops bictcp = { +static struct tcp_congestion_ops bictcp__read_mostly = { .init = bictcp_init, .ssthresh = bictcp_recalc_ssthresh, .cong_avoid = bictcp_cong_avoid,
net/ipv4/tcp_cubic.c +1 -1
@@ -405,7 +405,7 @@ static void bictcp_acked(struct sock *skhystart_update (sk, delay); } -static struct tcp_congestion_ops cubictcp = { +static struct tcp_congestion_ops cubictcp__read_mostly = { .init = bictcp_init, .ssthresh = bictcp_recalc_ssthresh, .cong_avoid = bictcp_cong_avoid,
net/ipv4/tcp_highspeed.c +1 -1
@@ -158,7 +158,7 @@ static u32 hstcp_ssthresh(struct sock *s } -static struct tcp_congestion_ops tcp_highspeed = { +static struct tcp_congestion_ops tcp_highspeed__read_mostly = { .init = hstcp_init, .ssthresh = hstcp_ssthresh, .cong_avoid = hstcp_cong_avoid,
net/ipv4/tcp_htcp.c +1 -1
@@ -284,7 +284,7 @@ static void htcp_state(struct sock *sk, } } -static struct tcp_congestion_ops htcp = { +static struct tcp_congestion_ops htcp__read_mostly = { .init = htcp_init, .ssthresh = htcp_recalc_ssthresh, .cong_avoid = htcp_cong_avoid,
net/ipv4/tcp_hybla.c +1 -1
@@ -162,7 +162,7 @@ static void hybla_cong_avoid(struct sock tp->snd_cwnd =min_t (u32, tp->snd_cwnd, tp->snd_cwnd_clamp); } -static struct tcp_congestion_ops tcp_hybla = { +static struct tcp_congestion_ops tcp_hybla__read_mostly = { .init = hybla_init, .ssthresh = tcp_reno_ssthresh, .min_cwnd = tcp_reno_min_cwnd,
net/ipv4/tcp_illinois.c +1 -1
@@ -322,7 +322,7 @@ static void tcp_illinois_info(struct soc } } -static struct tcp_congestion_ops tcp_illinois = { +static struct tcp_congestion_ops tcp_illinois__read_mostly = { .flags =TCP_CONG_RTT_STAMP , .init = tcp_illinois_init, .ssthresh = tcp_illinois_ssthresh,
net/ipv4/tcp_lp.c +1 -1
@@ -313,7 +313,7 @@ static void tcp_lp_pkts_acked(struct soc lp->last_drop = tcp_time_stamp; } -static struct tcp_congestion_ops tcp_lp = { +static struct tcp_congestion_ops tcp_lp__read_mostly = { .flags =TCP_CONG_RTT_STAMP , .init = tcp_lp_init, .ssthresh = tcp_reno_ssthresh,
net/ipv4/tcp_scalable.c +1 -1
@@ -35,7 +35,7 @@ static u32 tcp_scalable_ssthresh(struct } -static struct tcp_congestion_ops tcp_scalable = { +static struct tcp_congestion_ops tcp_scalable__read_mostly = { .ssthresh = tcp_scalable_ssthresh, .cong_avoid = tcp_scalable_cong_avoid, .min_cwnd = tcp_reno_min_cwnd,
net/ipv4/tcp_vegas.c +1 -1
@@ -304,7 +304,7 @@ void tcp_vegas_get_info(struct sock *sk, }EXPORT_SYMBOL_GPL (tcp_vegas_get_info); -static struct tcp_congestion_ops tcp_vegas = { +static struct tcp_congestion_ops tcp_vegas__read_mostly = { .flags =TCP_CONG_RTT_STAMP , .init = tcp_vegas_init, .ssthresh = tcp_reno_ssthresh,
net/ipv4/tcp_veno.c +1 -1
@@ -201,7 +201,7 @@ static u32 tcp_veno_ssthresh(struct sockreturn max (tp->snd_cwnd >>1U ,2U ); } -static struct tcp_congestion_ops tcp_veno = { +static struct tcp_congestion_ops tcp_veno__read_mostly = { .flags =TCP_CONG_RTT_STAMP , .init = tcp_veno_init, .ssthresh = tcp_veno_ssthresh,
net/ipv4/tcp_westwood.c +1 -1
@@ -272,7 +272,7 @@ static void tcp_westwood_info(struct soc } -static struct tcp_congestion_ops tcp_westwood = { +static struct tcp_congestion_ops tcp_westwood__read_mostly = { .init = tcp_westwood_init, .ssthresh = tcp_reno_ssthresh, .cong_avoid = tcp_reno_cong_avoid,
net/ipv4/tcp_yeah.c +1 -1
@@ -225,7 +225,7 @@ static u32 tcp_yeah_ssthresh(struct sockreturn tp->snd_cwnd - reduction; } -static struct tcp_congestion_ops tcp_yeah = { +static struct tcp_congestion_ops tcp_yeah__read_mostly = { .flags =TCP_CONG_RTT_STAMP , .init = tcp_yeah_init, .ssthresh = tcp_yeah_ssthresh,
From: Stephen Hemminger <[email protected]>
Date: Wed, 9 Mar 2011 16:02:20 -0800
Quoted 1 line
Signed-off-by Stephen Hemminger <[email protected]>
Applied, thanks Stephen.