summaryrefslogtreecommitdiffstats
path: root/drivers/ipack
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-02-25 10:08:38 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-03-02 20:05:26 +0100
commitaf4610c39589d839551da104f7da342d86f23ea0 (patch)
treedd1aa462199737434bccc9b2f54cb8595d4e1407 /drivers/ipack
parent5f6c253ebe93b02dece01c6f58447f16b29f6dd3 (diff)
downloadlinux-af4610c39589d839551da104f7da342d86f23ea0.tar.bz2
netfilter: don't call hooks unless needed
With the previous patches in place, a netns nf_hook_list might be empty, even if e.g. init_net performs filtering. Thus change nf_hook_thresh to check the hook_list as well before initializing hook_state and calling nf_hook_slow(). We still make use of static keys; if no netfilter modules are loaded list is guaranteed to be empty. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'drivers/ipack')
0 files changed, 0 insertions, 0 deletions