Skip to content
Commit ca58fbe0 authored by Florian Westphal's avatar Florian Westphal Committed by Pablo Neira Ayuso
Browse files

netfilter: add and use nf_hook_slow_list()



At this time, NF_HOOK_LIST() macro will iterate the list and then calls
nf_hook() for each individual skb.

This makes it so the entire list is passed into the netfilter core.
The advantage is that we only need to fetch the rule blob once per list
instead of per-skb.

NF_HOOK_LIST now only works for ipv4 and ipv6, as those are the only
callers.

v2: use skb_list_del_init() instead of list_del (Edward Cree)

Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Acked-by: default avatarEdward Cree <ecree@solarflare.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 2ad9d774
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment