From 95f422f09a2eceaf8ce9c12b00fd963bdf76edb0 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Mon, 17 Dec 2007 22:37:52 -0800 Subject: [PATCH] --- yaml --- r: 78537 b: refs/heads/master c: ce4b1cebdcd4779097e9862670e5c5208e76712b h: refs/heads/master i: 78535: da88415c8639f02ec97824da29290330ec59d12b v: v3 --- [refs] | 2 +- trunk/net/ipv4/netfilter/nf_nat_core.c | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index fbf14f14603a..4047fd62e9d1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2b628a0866860d44652362aafe403e5b5895583d +refs/heads/master: ce4b1cebdcd4779097e9862670e5c5208e76712b diff --git a/trunk/net/ipv4/netfilter/nf_nat_core.c b/trunk/net/ipv4/netfilter/nf_nat_core.c index a772445228ac..7cc179cfc7c1 100644 --- a/trunk/net/ipv4/netfilter/nf_nat_core.c +++ b/trunk/net/ipv4/netfilter/nf_nat_core.c @@ -33,16 +33,17 @@ static DEFINE_RWLOCK(nf_nat_lock); -static struct nf_conntrack_l3proto *l3proto = NULL; +static struct nf_conntrack_l3proto *l3proto __read_mostly; /* Calculated at init based on memory size */ -static unsigned int nf_nat_htable_size; +static unsigned int nf_nat_htable_size __read_mostly; static int nf_nat_vmalloced; -static struct hlist_head *bysource; +static struct hlist_head *bysource __read_mostly; #define MAX_IP_NAT_PROTO 256 -static const struct nf_nat_protocol *nf_nat_protos[MAX_IP_NAT_PROTO]; +static const struct nf_nat_protocol *nf_nat_protos[MAX_IP_NAT_PROTO] + __read_mostly; static inline const struct nf_nat_protocol * __nf_nat_proto_find(u_int8_t protonum)