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

Commit 30083c95 authored by Jan Engelhardt's avatar Jan Engelhardt Committed by David S. Miller
Browse files

[NETFILTER]: ebtables: mark matches, targets and watchers __read_mostly

parent f776c4cd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -50,8 +50,7 @@ static int ebt_802_3_check(const char *tablename, unsigned int hookmask,
	return 0;
}

static struct ebt_match filter_802_3 =
{
static struct ebt_match filter_802_3 __read_mostly = {
	.name		= EBT_802_3_MATCH,
	.match		= ebt_filter_802_3,
	.check		= ebt_802_3_check,
+1 −1
Original line number Diff line number Diff line
@@ -212,7 +212,7 @@ static int ebt_among_check(const char *tablename, unsigned int hookmask,
	return 0;
}

static struct ebt_match filter_among = {
static struct ebt_match filter_among __read_mostly = {
	.name		= EBT_AMONG_MATCH,
	.match		= ebt_filter_among,
	.check		= ebt_among_check,
+1 −2
Original line number Diff line number Diff line
@@ -116,8 +116,7 @@ static int ebt_arp_check(const char *tablename, unsigned int hookmask,
	return 0;
}

static struct ebt_match filter_arp =
{
static struct ebt_match filter_arp __read_mostly = {
	.name		= EBT_ARP_MATCH,
	.match		= ebt_filter_arp,
	.check		= ebt_arp_check,
+1 −2
Original line number Diff line number Diff line
@@ -76,8 +76,7 @@ static int ebt_target_reply_check(const char *tablename, unsigned int hookmask,
	return 0;
}

static struct ebt_target reply_target =
{
static struct ebt_target reply_target __read_mostly = {
	.name		= EBT_ARPREPLY_TARGET,
	.target		= ebt_target_reply,
	.check		= ebt_target_reply_check,
+1 −2
Original line number Diff line number Diff line
@@ -46,8 +46,7 @@ static int ebt_target_dnat_check(const char *tablename, unsigned int hookmask,
	return 0;
}

static struct ebt_target dnat =
{
static struct ebt_target dnat __read_mostly = {
	.name		= EBT_DNAT_TARGET,
	.target		= ebt_target_dnat,
	.check		= ebt_target_dnat_check,
Loading