]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable infrastructure depends on NETFILTER_INGRESS
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 31 Jan 2018 17:13:39 +0000 (18:13 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 2 Feb 2018 12:21:48 +0000 (13:21 +0100)
commit4ad6d8134cca1baee3c7a0683a32c9e5d6fe3f94
treedbc852a872e128fec342ca256d14eed45b2d113b
parent20a53ec57c5e899ef8190959bcc30e161ea8c5c2
netfilter: flowtable infrastructure depends on NETFILTER_INGRESS

config NF_FLOW_TABLE depends on NETFILTER_INGRESS. If users forget to
enable this toggle, flowtable registration fails with EOPNOTSUPP.

Moreover, turn 'select NF_FLOW_TABLE' in every flowtable family flavour
into dependency instead, otherwise this new dependency on
NETFILTER_INGRESS causes a warning. This also allows us to remove the
explicit dependency between family flowtables <-> NF_TABLES and
NF_CONNTRACK, given they depend on the NF_FLOW_TABLE core that already
expresses the general dependencies for this new infrastructure.

Moreover, NF_FLOW_TABLE_INET depends on NF_FLOW_TABLE_IPV4 and
NF_FLOWTABLE_IPV6, which already depends on NF_FLOW_TABLE. So we can get
rid of direct dependency with NF_FLOW_TABLE.

In general, let's avoid 'select', it just makes things more complicated.

Reported-by: John Crispin <john@phrozen.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/Kconfig
net/ipv6/netfilter/Kconfig
net/netfilter/Kconfig