netfilter: remove hook_entries field from nf_hook_state
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 3 Nov 2016 09:56:35 +0000 (10:56 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 3 Nov 2016 10:52:58 +0000 (11:52 +0100)
commit01886bd91f1ba418ce669dfe97a06ca9504e482a
tree8ca4687177e9159d364790ce83c303360424dbd4
parentc63cbc4604199af6627633f2bb3847a8951f48e5
netfilter: remove hook_entries field from nf_hook_state

This field is only useful for nf_queue, so store it in the
nf_queue_entry structure instead, away from the core path. Pass
hook_head to nf_hook_slow().

Since we always have a valid entry on the first iteration in
nf_iterate(), we can use 'do { ... } while (entry)' loop instead.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter.h
include/linux/netfilter_ingress.h
include/net/netfilter/nf_queue.h
net/bridge/br_netfilter_hooks.c
net/bridge/netfilter/ebtable_broute.c
net/netfilter/core.c
net/netfilter/nf_queue.c
net/netfilter/nfnetlink_queue.c