diff options
author | Patrick McHardy <kaber@trash.net> | 2007-07-08 01:37:03 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-11 01:18:14 -0400 |
commit | ec59a1110aee6846adada8979915cacae64042ce (patch) | |
tree | b4a19d1a84fd0f46e2f1f112f27ea716d819ff29 /net | |
parent | b8a7fe6c10511fce10b20efa163123f4041f2550 (diff) |
[NETFILTER]: nf_conntrack: mark helpers __read_mostly
Most are __read_mostly already, this changes the remaining ones.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_conntrack_ftp.c | 4 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_sane.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/netfilter/nf_conntrack_ftp.c b/net/netfilter/nf_conntrack_ftp.c index 198330b8ada4..cd9c2d00cc09 100644 --- a/net/netfilter/nf_conntrack_ftp.c +++ b/net/netfilter/nf_conntrack_ftp.c | |||
@@ -518,8 +518,8 @@ out_update_nl: | |||
518 | return ret; | 518 | return ret; |
519 | } | 519 | } |
520 | 520 | ||
521 | static struct nf_conntrack_helper ftp[MAX_PORTS][2]; | 521 | static struct nf_conntrack_helper ftp[MAX_PORTS][2] __read_mostly; |
522 | static char ftp_names[MAX_PORTS][2][sizeof("ftp-65535")]; | 522 | static char ftp_names[MAX_PORTS][2][sizeof("ftp-65535")] __read_mostly; |
523 | 523 | ||
524 | /* don't make this __exit, since it's called from __init ! */ | 524 | /* don't make this __exit, since it's called from __init ! */ |
525 | static void nf_conntrack_ftp_fini(void) | 525 | static void nf_conntrack_ftp_fini(void) |
diff --git a/net/netfilter/nf_conntrack_sane.c b/net/netfilter/nf_conntrack_sane.c index edd10df8aa08..627eda79d154 100644 --- a/net/netfilter/nf_conntrack_sane.c +++ b/net/netfilter/nf_conntrack_sane.c | |||
@@ -166,8 +166,8 @@ out: | |||
166 | return ret; | 166 | return ret; |
167 | } | 167 | } |
168 | 168 | ||
169 | static struct nf_conntrack_helper sane[MAX_PORTS][2]; | 169 | static struct nf_conntrack_helper sane[MAX_PORTS][2] __read_mostly; |
170 | static char sane_names[MAX_PORTS][2][sizeof("sane-65535")]; | 170 | static char sane_names[MAX_PORTS][2][sizeof("sane-65535")] __read_mostly; |
171 | 171 | ||
172 | /* don't make this __exit, since it's called from __init ! */ | 172 | /* don't make this __exit, since it's called from __init ! */ |
173 | static void nf_conntrack_sane_fini(void) | 173 | static void nf_conntrack_sane_fini(void) |