aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAaron Conole <aconole@redhat.com>2016-11-15 17:48:45 -0500
committerPablo Neira Ayuso <pablo@netfilter.org>2016-12-06 21:42:16 +0100
commitd415b9eb76fc55c03ef5451691170aa5771dcea3 (patch)
tree9f410cdef78d6647ff5c8f2cf89d8b830ce43cf8 /net
parentnetfilter: introduce accessor functions for hook entries (diff)
downloadlinux-dev-d415b9eb76fc55c03ef5451691170aa5771dcea3.tar.xz
linux-dev-d415b9eb76fc55c03ef5451691170aa5771dcea3.zip
netfilter: decouple nf_hook_entry and nf_hook_ops
During nfhook traversal we only need a very small subset of nf_hook_ops members. We need: - next element - hook function to call - hook function priv argument Bridge netfilter also needs 'thresh'; can be obtained via ->orig_ops. nf_hook_entry struct is now 32 bytes on x86_64. A followup patch will turn the run-time list into an array that only stores hook functions plus their priv arguments, eliminating the ->next element. Suggested-by: Florian Westphal <fw@strlen.de> Signed-off-by: Aaron Conole <aconole@bytheb.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions