diff options
author | Florian Westphal <fw@strlen.de> | 2017-12-07 16:28:25 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-01-08 18:01:10 +0100 |
commit | bb4badf3a3dc81190f7c1c1fa063cdefb18df45f (patch) | |
tree | db9c5d83c02ee83d0137a9b52d369d9948798660 /include/linux/netfilter.h | |
parent | ef57170bbfdd6958281011332b1fd237712f69f0 (diff) | |
download | blackbird-obmc-linux-bb4badf3a3dc81190f7c1c1fa063cdefb18df45f.tar.gz blackbird-obmc-linux-bb4badf3a3dc81190f7c1c1fa063cdefb18df45f.zip |
netfilter: don't allocate space for decnet hooks unless needed
no need to define hook points if the family isn't supported.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/netfilter.h')
-rw-r--r-- | include/linux/netfilter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 9dcbcdfa3b82..ce4e91df8b56 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -219,9 +219,11 @@ static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, case NFPROTO_BRIDGE: hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); break; +#if IS_ENABLED(CONFIG_DECNET) case NFPROTO_DECNET: hook_head = rcu_dereference(net->nf.hooks_decnet[hook]); break; +#endif default: WARN_ON_ONCE(1); break; |