Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f15c530 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NETFILTER]: x_tables: mark matches and targets __read_mostly

parent ba9dda3a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1140,13 +1140,13 @@ void arpt_unregister_table(struct arpt_table *table)
}

/* The built-in targets: standard (NULL) and error. */
static struct arpt_target arpt_standard_target = {
static struct arpt_target arpt_standard_target __read_mostly = {
	.name		= ARPT_STANDARD_TARGET,
	.targetsize	= sizeof(int),
	.family		= NF_ARP,
};

static struct arpt_target arpt_error_target = {
static struct arpt_target arpt_error_target __read_mostly = {
	.name		= ARPT_ERROR_TARGET,
	.target		= arpt_error,
	.targetsize	= ARPT_FUNCTION_MAXNAMELEN,
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ checkentry(const char *tablename, const void *e, const struct xt_target *target,
	return true;
}

static struct arpt_target arpt_mangle_reg = {
static struct arpt_target arpt_mangle_reg __read_mostly = {
	.name		= "mangle",
	.target		= target,
	.targetsize	= sizeof(struct arpt_mangle),
+3 −3
Original line number Diff line number Diff line
@@ -2264,7 +2264,7 @@ icmp_checkentry(const char *tablename,
}

/* The built-in targets: standard (NULL) and error. */
static struct xt_target ipt_standard_target = {
static struct xt_target ipt_standard_target __read_mostly = {
	.name		= IPT_STANDARD_TARGET,
	.targetsize	= sizeof(int),
	.family		= AF_INET,
@@ -2275,7 +2275,7 @@ static struct xt_target ipt_standard_target = {
#endif
};

static struct xt_target ipt_error_target = {
static struct xt_target ipt_error_target __read_mostly = {
	.name		= IPT_ERROR_TARGET,
	.target		= ipt_error,
	.targetsize	= IPT_FUNCTION_MAXNAMELEN,
@@ -2298,7 +2298,7 @@ static struct nf_sockopt_ops ipt_sockopts = {
#endif
};

static struct xt_match icmp_matchstruct = {
static struct xt_match icmp_matchstruct __read_mostly = {
	.name		= "icmp",
	.match		= icmp_match,
	.matchsize	= sizeof(struct ipt_icmp),
+1 −1
Original line number Diff line number Diff line
@@ -466,7 +466,7 @@ static void destroy(const struct xt_target *target, void *targinfo)
	nf_ct_l3proto_module_put(target->family);
}

static struct xt_target clusterip_tgt = {
static struct xt_target clusterip_tgt __read_mostly = {
	.name		= "CLUSTERIP",
	.family		= AF_INET,
	.target		= target,
+1 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ checkentry(const char *tablename,
	return true;
}

static struct xt_target ipt_ecn_reg = {
static struct xt_target ipt_ecn_reg __read_mostly = {
	.name		= "ECN",
	.family		= AF_INET,
	.target		= target,
Loading