aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-07-08 01:27:06 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-07-11 01:17:38 -0400
commit61eb3107cd8e0302f95aae26206e552365daf290 (patch)
tree611a85cac1cb7540944b7e1779cb4f4ab846cf69
parentb6b84d4a94e95727a4c65841eea23ac60c6aa329 (diff)
[NETFILTER]: nf_conntrack_extend: use __read_mostly for struct nf_ct_ext_type
Also make them static. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv4/netfilter/nf_nat_core.c2
-rw-r--r--net/netfilter/nf_conntrack_helper.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/nf_nat_core.c b/net/ipv4/netfilter/nf_nat_core.c
index 7e31777082de..04691edf50c2 100644
--- a/net/ipv4/netfilter/nf_nat_core.c
+++ b/net/ipv4/netfilter/nf_nat_core.c
@@ -623,7 +623,7 @@ static void nf_nat_move_storage(struct nf_conn *conntrack, void *old)
623 write_unlock_bh(&nf_nat_lock); 623 write_unlock_bh(&nf_nat_lock);
624} 624}
625 625
626struct nf_ct_ext_type nat_extend = { 626static struct nf_ct_ext_type nat_extend __read_mostly = {
627 .len = sizeof(struct nf_conn_nat), 627 .len = sizeof(struct nf_conn_nat),
628 .align = __alignof__(struct nf_conn_nat), 628 .align = __alignof__(struct nf_conn_nat),
629 .destroy = nf_nat_cleanup_conntrack, 629 .destroy = nf_nat_cleanup_conntrack,
diff --git a/net/netfilter/nf_conntrack_helper.c b/net/netfilter/nf_conntrack_helper.c
index 6d32399d64e1..dc352f509477 100644
--- a/net/netfilter/nf_conntrack_helper.c
+++ b/net/netfilter/nf_conntrack_helper.c
@@ -145,7 +145,7 @@ void nf_conntrack_helper_unregister(struct nf_conntrack_helper *me)
145} 145}
146EXPORT_SYMBOL_GPL(nf_conntrack_helper_unregister); 146EXPORT_SYMBOL_GPL(nf_conntrack_helper_unregister);
147 147
148struct nf_ct_ext_type helper_extend = { 148static struct nf_ct_ext_type helper_extend __read_mostly = {
149 .len = sizeof(struct nf_conn_help), 149 .len = sizeof(struct nf_conn_help),
150 .align = __alignof__(struct nf_conn_help), 150 .align = __alignof__(struct nf_conn_help),
151 .id = NF_CT_EXT_HELPER, 151 .id = NF_CT_EXT_HELPER,