Commit abbcc73982445c1457901c7fc1d0d110e7a587e3
Committed by
David S. Miller
1 parent
a9b305c4e5
[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: Julian Anastasov <ja@ssi.bg> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff
net/ipv4/ipvs/ip_vs_core.c
... | ... | @@ -532,11 +532,8 @@ |
532 | 532 | { |
533 | 533 | if (!((*pskb)->ipvs_property)) |
534 | 534 | return NF_ACCEPT; |
535 | - | |
536 | 535 | /* The packet was sent from IPVS, exit this chain */ |
537 | - (*okfn)(*pskb); | |
538 | - | |
539 | - return NF_STOLEN; | |
536 | + return NF_STOP; | |
540 | 537 | } |
541 | 538 | |
542 | 539 | u16 ip_vs_checksum_complete(struct sk_buff *skb, int offset) |