Skip to content

Commit

Permalink
[NETFILTER]: Remove okfn usage in ip_vs_core.c
Browse files Browse the repository at this point in the history
okfn should only be used from different contexts to avoid deep call chains,
i.e. by nf_queue.

Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 5, 2006
1 parent a9b305c commit abbcc73
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions net/ipv4/ipvs/ip_vs_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,8 @@ static unsigned int ip_vs_post_routing(unsigned int hooknum,
{
if (!((*pskb)->ipvs_property))
return NF_ACCEPT;

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

return NF_STOLEN;
return NF_STOP;
}

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

0 comments on commit abbcc73

Please sign in to comment.