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

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

[NETFILTER]: Remove okfn usage in ip_vs_core.c



okfn should only be used from different contexts to avoid deep call chains,
i.e. by nf_queue.

Acked-by: default avatarJulian Anastasov <ja@ssi.bg>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a9b305c4
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -532,11 +532,8 @@ static unsigned int ip_vs_post_routing(unsigned int hooknum,
{
{
	if (!((*pskb)->ipvs_property))
	if (!((*pskb)->ipvs_property))
		return NF_ACCEPT;
		return NF_ACCEPT;

	/* The packet was sent from IPVS, exit this chain */
	/* The packet was sent from IPVS, exit this chain */
	(*okfn)(*pskb);
	return NF_STOP;

	return NF_STOLEN;
}
}


u16 ip_vs_checksum_complete(struct sk_buff *skb, int offset)
u16 ip_vs_checksum_complete(struct sk_buff *skb, int offset)