netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta.com>
To: David Miller <davem@davemloft.net>, Eric Dumazet <dada1@cosmosbay.com>
Cc: netdev@vger.kernel.org
Subject: [PATCH]  tcp: mark tcp_congestion_ops read_mostly
Date: Wed, 9 Mar 2011 16:02:20 -0800	[thread overview]
Message-ID: <20110309160220.1a2db73e@nehalam> (raw)


Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

---
 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(-)

--- a/net/ipv4/tcp_bic.c	2011-03-09 14:21:25.015099639 -0800
+++ b/net/ipv4/tcp_bic.c	2011-03-09 14:21:46.291314688 -0800
@@ -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,
--- a/net/ipv4/tcp_cubic.c	2011-03-09 14:20:30.818552460 -0800
+++ b/net/ipv4/tcp_cubic.c	2011-03-09 14:23:24.524309323 -0800
@@ -405,7 +405,7 @@ static void bictcp_acked(struct sock *sk
 		hystart_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,
--- a/net/ipv4/tcp_highspeed.c	2011-03-09 14:21:25.055100042 -0800
+++ b/net/ipv4/tcp_highspeed.c	2011-03-09 14:22:00.187455217 -0800
@@ -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,
--- a/net/ipv4/tcp_htcp.c	2011-03-09 14:21:25.075100244 -0800
+++ b/net/ipv4/tcp_htcp.c	2011-03-09 14:22:07.451528700 -0800
@@ -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,
--- a/net/ipv4/tcp_hybla.c	2011-03-09 14:21:25.095100447 -0800
+++ b/net/ipv4/tcp_hybla.c	2011-03-09 14:22:20.603661788 -0800
@@ -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,
--- a/net/ipv4/tcp_illinois.c	2011-03-09 14:21:25.115100649 -0800
+++ b/net/ipv4/tcp_illinois.c	2011-03-09 14:22:24.823704499 -0800
@@ -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,
--- a/net/ipv4/tcp_lp.c	2011-03-09 14:21:25.155101052 -0800
+++ b/net/ipv4/tcp_lp.c	2011-03-09 14:22:32.879786056 -0800
@@ -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,
--- a/net/ipv4/tcp_scalable.c	2011-03-09 14:21:25.175101255 -0800
+++ b/net/ipv4/tcp_scalable.c	2011-03-09 14:22:37.179829592 -0800
@@ -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,
--- a/net/ipv4/tcp_vegas.c	2011-03-09 14:21:25.195101458 -0800
+++ b/net/ipv4/tcp_vegas.c	2011-03-09 14:22:40.999868286 -0800
@@ -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,
--- a/net/ipv4/tcp_veno.c	2011-03-09 14:21:25.215101658 -0800
+++ b/net/ipv4/tcp_veno.c	2011-03-09 14:22:45.163910441 -0800
@@ -201,7 +201,7 @@ static u32 tcp_veno_ssthresh(struct sock
 		return 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,
--- a/net/ipv4/tcp_westwood.c	2011-03-09 14:21:25.235101861 -0800
+++ b/net/ipv4/tcp_westwood.c	2011-03-09 14:22:48.999949301 -0800
@@ -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,
--- a/net/ipv4/tcp_yeah.c	2011-03-09 14:21:25.255102064 -0800
+++ b/net/ipv4/tcp_yeah.c	2011-03-09 14:22:54.108001044 -0800
@@ -225,7 +225,7 @@ static u32 tcp_yeah_ssthresh(struct sock
 	return 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,

             reply	other threads:[~2011-03-10  0:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-10  0:02 Stephen Hemminger [this message]
2011-03-10  8:40 ` [PATCH] tcp: mark tcp_congestion_ops read_mostly David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110309160220.1a2db73e@nehalam \
    --to=shemminger@vyatta.com \
    --cc=dada1@cosmosbay.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).