[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>
This commit is contained in:
Patrick McHardy
2007-07-07 22:22:02 -07:00
committed by David S. Miller
parent ba9dda3ab5
commit 9f15c5302d
73 changed files with 79 additions and 79 deletions
+3 -3
View File
@@ -1441,13 +1441,13 @@ icmp6_checkentry(const char *tablename,
}
/* The built-in targets: standard (NULL) and error. */
static struct xt_target ip6t_standard_target = {
static struct xt_target ip6t_standard_target __read_mostly = {
.name = IP6T_STANDARD_TARGET,
.targetsize = sizeof(int),
.family = AF_INET6,
};
static struct xt_target ip6t_error_target = {
static struct xt_target ip6t_error_target __read_mostly = {
.name = IP6T_ERROR_TARGET,
.target = ip6t_error,
.targetsize = IP6T_FUNCTION_MAXNAMELEN,
@@ -1464,7 +1464,7 @@ static struct nf_sockopt_ops ip6t_sockopts = {
.get = do_ip6t_get_ctl,
};
static struct xt_match icmp6_matchstruct = {
static struct xt_match icmp6_matchstruct __read_mostly = {
.name = "icmp6",
.match = &icmp6_match,
.matchsize = sizeof(struct ip6t_icmp),
+1 -1
View File
@@ -79,7 +79,7 @@ static bool ip6t_hl_checkentry(const char *tablename,
return true;
}
static struct xt_target ip6t_HL = {
static struct xt_target ip6t_HL __read_mostly = {
.name = "HL",
.family = AF_INET6,
.target = ip6t_hl_target,
+1 -1
View File
@@ -477,7 +477,7 @@ static bool ip6t_log_checkentry(const char *tablename,
return true;
}
static struct xt_target ip6t_log_reg = {
static struct xt_target ip6t_log_reg __read_mostly = {
.name = "LOG",
.family = AF_INET6,
.target = ip6t_log_target,
+1 -1
View File
@@ -244,7 +244,7 @@ static bool check(const char *tablename,
return true;
}
static struct xt_target ip6t_reject_reg = {
static struct xt_target ip6t_reject_reg __read_mostly = {
.name = "REJECT",
.family = AF_INET6,
.target = reject6_target,
+1 -1
View File
@@ -120,7 +120,7 @@ checkentry(const char *tablename,
return true;
}
static struct xt_match ah_match = {
static struct xt_match ah_match __read_mostly = {
.name = "ah",
.family = AF_INET6,
.match = match,
+1 -1
View File
@@ -62,7 +62,7 @@ match(const struct sk_buff *skb,
return false;
}
static struct xt_match eui64_match = {
static struct xt_match eui64_match __read_mostly = {
.name = "eui64",
.family = AF_INET6,
.match = match,
+1 -1
View File
@@ -137,7 +137,7 @@ checkentry(const char *tablename,
return true;
}
static struct xt_match frag_match = {
static struct xt_match frag_match __read_mostly = {
.name = "frag",
.family = AF_INET6,
.match = match,
+1 -1
View File
@@ -193,7 +193,7 @@ checkentry(const char *tablename,
return true;
}
static struct xt_match opts_match[] = {
static struct xt_match opts_match[] __read_mostly = {
{
.name = "hbh",
.family = AF_INET6,
+1 -1
View File
@@ -49,7 +49,7 @@ static bool match(const struct sk_buff *skb,
return false;
}
static struct xt_match hl_match = {
static struct xt_match hl_match __read_mostly = {
.name = "hl",
.family = AF_INET6,
.match = match,
+1 -1
View File
@@ -141,7 +141,7 @@ ipv6header_checkentry(const char *tablename,
return true;
}
static struct xt_match ip6t_ipv6header_match = {
static struct xt_match ip6t_ipv6header_match __read_mostly = {
.name = "ipv6header",
.family = AF_INET6,
.match = &ipv6header_match,
+1 -1
View File
@@ -89,7 +89,7 @@ mh_checkentry(const char *tablename,
return !(mhinfo->invflags & ~IP6T_MH_INV_MASK);
}
static struct xt_match mh_match = {
static struct xt_match mh_match __read_mostly = {
.name = "mh",
.family = AF_INET6,
.checkentry = mh_checkentry,
+1 -1
View File
@@ -68,7 +68,7 @@ checkentry(const char *tablename,
return true;
}
static struct xt_match owner_match = {
static struct xt_match owner_match __read_mostly = {
.name = "owner",
.family = AF_INET6,
.match = match,
+1 -1
View File
@@ -224,7 +224,7 @@ checkentry(const char *tablename,
return true;
}
static struct xt_match rt_match = {
static struct xt_match rt_match __read_mostly = {
.name = "rt",
.family = AF_INET6,
.match = match,