diff options
author | Patrick McHardy <kaber@trash.net> | 2007-07-08 01:22:02 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-11 01:17:15 -0400 |
commit | 9f15c5302de4e8b0aac7ca24c36bf26a7fe1a513 (patch) | |
tree | f9bf5883558941b1ad519f02106f53eefc90ba38 /net/ipv4/netfilter/ip_tables.c | |
parent | ba9dda3ab5a865542e69dfe01edb2436857c9420 (diff) |
[NETFILTER]: x_tables: mark matches and targets __read_mostly
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/ip_tables.c')
-rw-r--r-- | net/ipv4/netfilter/ip_tables.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c index 650ab52e915..2ba5bd9c8c1 100644 --- a/net/ipv4/netfilter/ip_tables.c +++ b/net/ipv4/netfilter/ip_tables.c | |||
@@ -2264,7 +2264,7 @@ icmp_checkentry(const char *tablename, | |||
2264 | } | 2264 | } |
2265 | 2265 | ||
2266 | /* The built-in targets: standard (NULL) and error. */ | 2266 | /* The built-in targets: standard (NULL) and error. */ |
2267 | static struct xt_target ipt_standard_target = { | 2267 | static struct xt_target ipt_standard_target __read_mostly = { |
2268 | .name = IPT_STANDARD_TARGET, | 2268 | .name = IPT_STANDARD_TARGET, |
2269 | .targetsize = sizeof(int), | 2269 | .targetsize = sizeof(int), |
2270 | .family = AF_INET, | 2270 | .family = AF_INET, |
@@ -2275,7 +2275,7 @@ static struct xt_target ipt_standard_target = { | |||
2275 | #endif | 2275 | #endif |
2276 | }; | 2276 | }; |
2277 | 2277 | ||
2278 | static struct xt_target ipt_error_target = { | 2278 | static struct xt_target ipt_error_target __read_mostly = { |
2279 | .name = IPT_ERROR_TARGET, | 2279 | .name = IPT_ERROR_TARGET, |
2280 | .target = ipt_error, | 2280 | .target = ipt_error, |
2281 | .targetsize = IPT_FUNCTION_MAXNAMELEN, | 2281 | .targetsize = IPT_FUNCTION_MAXNAMELEN, |
@@ -2298,7 +2298,7 @@ static struct nf_sockopt_ops ipt_sockopts = { | |||
2298 | #endif | 2298 | #endif |
2299 | }; | 2299 | }; |
2300 | 2300 | ||
2301 | static struct xt_match icmp_matchstruct = { | 2301 | static struct xt_match icmp_matchstruct __read_mostly = { |
2302 | .name = "icmp", | 2302 | .name = "icmp", |
2303 | .match = icmp_match, | 2303 | .match = icmp_match, |
2304 | .matchsize = sizeof(struct ipt_icmp), | 2304 | .matchsize = sizeof(struct ipt_icmp), |