aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/netfilter/nf_nat_core.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/nf_nat_core.c b/net/ipv4/netfilter/nf_nat_core.c
index a772445228ac..7cc179cfc7c1 100644
--- a/net/ipv4/netfilter/nf_nat_core.c
+++ b/net/ipv4/netfilter/nf_nat_core.c
@@ -33,16 +33,17 @@
33 33
34static DEFINE_RWLOCK(nf_nat_lock); 34static DEFINE_RWLOCK(nf_nat_lock);
35 35
36static struct nf_conntrack_l3proto *l3proto = NULL; 36static struct nf_conntrack_l3proto *l3proto __read_mostly;
37 37
38/* Calculated at init based on memory size */ 38/* Calculated at init based on memory size */
39static unsigned int nf_nat_htable_size; 39static unsigned int nf_nat_htable_size __read_mostly;
40static int nf_nat_vmalloced; 40static int nf_nat_vmalloced;
41 41
42static struct hlist_head *bysource; 42static struct hlist_head *bysource __read_mostly;
43 43
44#define MAX_IP_NAT_PROTO 256 44#define MAX_IP_NAT_PROTO 256
45static const struct nf_nat_protocol *nf_nat_protos[MAX_IP_NAT_PROTO]; 45static const struct nf_nat_protocol *nf_nat_protos[MAX_IP_NAT_PROTO]
46 __read_mostly;
46 47
47static inline const struct nf_nat_protocol * 48static inline const struct nf_nat_protocol *
48__nf_nat_proto_find(u_int8_t protonum) 49__nf_nat_proto_find(u_int8_t protonum)