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

Commit 1999414a authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NETFILTER]: Mark hooks __read_mostly

parent 41c5b317
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -871,7 +871,7 @@ static unsigned int ip_sabotage_in(unsigned int hook, struct sk_buff *skb,
 * PF_BRIDGE/NF_BR_LOCAL_OUT functions don't get bridged traffic as input.
 * PF_BRIDGE/NF_BR_LOCAL_OUT functions don't get bridged traffic as input.
 * For br_nf_post_routing, we need (prio = NF_BR_PRI_LAST), because
 * For br_nf_post_routing, we need (prio = NF_BR_PRI_LAST), because
 * ip_refrag() can return NF_STOLEN. */
 * ip_refrag() can return NF_STOLEN. */
static struct nf_hook_ops br_nf_ops[] = {
static struct nf_hook_ops br_nf_ops[] __read_mostly = {
	{ .hook = br_nf_pre_routing,
	{ .hook = br_nf_pre_routing,
	  .owner = THIS_MODULE,
	  .owner = THIS_MODULE,
	  .pf = PF_BRIDGE,
	  .pf = PF_BRIDGE,
+1 −1
Original line number Original line Diff line number Diff line
@@ -67,7 +67,7 @@ ebt_hook(unsigned int hook, struct sk_buff *skb, const struct net_device *in,
	return ebt_do_table(hook, skb, in, out, &frame_filter);
	return ebt_do_table(hook, skb, in, out, &frame_filter);
}
}


static struct nf_hook_ops ebt_ops_filter[] = {
static struct nf_hook_ops ebt_ops_filter[] __read_mostly = {
	{
	{
		.hook		= ebt_hook,
		.hook		= ebt_hook,
		.owner		= THIS_MODULE,
		.owner		= THIS_MODULE,
+1 −1
Original line number Original line Diff line number Diff line
@@ -74,7 +74,7 @@ ebt_nat_src(unsigned int hook, struct sk_buff *skb, const struct net_device *in
	return ebt_do_table(hook, skb, in, out, &frame_nat);
	return ebt_do_table(hook, skb, in, out, &frame_nat);
}
}


static struct nf_hook_ops ebt_ops_nat[] = {
static struct nf_hook_ops ebt_ops_nat[] __read_mostly = {
	{
	{
		.hook		= ebt_nat_dst,
		.hook		= ebt_nat_dst,
		.owner		= THIS_MODULE,
		.owner		= THIS_MODULE,
+1 −1
Original line number Original line Diff line number Diff line
@@ -115,7 +115,7 @@ static inline void dnrmg_receive_user_skb(struct sk_buff *skb)
	RCV_SKB_FAIL(-EINVAL);
	RCV_SKB_FAIL(-EINVAL);
}
}


static struct nf_hook_ops dnrmg_ops = {
static struct nf_hook_ops dnrmg_ops __read_mostly = {
	.hook		= dnrmg_hook,
	.hook		= dnrmg_hook,
	.pf		= PF_DECnet,
	.pf		= PF_DECnet,
	.hooknum	= NF_DN_ROUTE,
	.hooknum	= NF_DN_ROUTE,
+1 −1
Original line number Original line Diff line number Diff line
@@ -1025,7 +1025,7 @@ ip_vs_forward_icmp(unsigned int hooknum, struct sk_buff *skb,
}
}




static struct nf_hook_ops ip_vs_ops[]  = {
static struct nf_hook_ops ip_vs_ops[] __read_mostly = {
	/* After packet filtering, forward packet through VS/DR, VS/TUN,
	/* After packet filtering, forward packet through VS/DR, VS/TUN,
	 * or VS/NAT(change destination), so that filtering rules can be
	 * or VS/NAT(change destination), so that filtering rules can be
	 * applied to IPVS. */
	 * applied to IPVS. */
Loading