netfilter: bridge: fix CONFIG_NF_DEFRAG_IPV4/6 related warnings/errors
authorBernhard Thaler <bernhard.thaler@wvnet.at>
Fri, 19 Jun 2015 22:17:50 +0000 (00:17 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 2 Jul 2015 13:03:13 +0000 (15:03 +0200)
commita1bc1b356a9d21bf29bc7c873718b5cacdf119b4
tree5b667851728a2461c5e89f36277643c81023ddfb
parentf307170d6e591a48529425b1ed6ca835790995a9
netfilter: bridge: fix CONFIG_NF_DEFRAG_IPV4/6 related warnings/errors

br_nf_ip_fragment() is not needed when neither CONFIG_NF_DEFRAG_IPV4 nor
CONFIG_NF_DEFRAG_IPV6 is set.

struct brnf_frag_data must be available if either CONFIG_NF_DEFRAG_IPV4
or CONFIG_NF_DEFRAG_IPV6 is set.

Fixes: efb6de9b4ba0 ("netfilter: bridge: forward IPv6 fragmented packets")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Bernhard Thaler <bernhard.thaler@wvnet.at>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/br_netfilter_hooks.c