You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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:
committed by
David S. Miller
parent
ba9dda3ab5
commit
9f15c5302d
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user