On Fri, Aug 25, 2017 at 04:11:12PM +0530, Varsha Rao wrote:
> Remove NFDEBUG and use pr_debug() instead of it.

Applied, thanks.

Varsha, could you remove CONFIG_NETFILTER_DEBUG too?

Update IP_NF_ASSERT() to use WARN_ON(), this is actually already there
in ip6_tables.

net/bridge/netfilter/ebtables.c:#ifdef CONFIG_NETFILTER_DEBUG
net/bridge/netfilter/ebtables.c:#ifdef CONFIG_NETFILTER_DEBUG
net/bridge/netfilter/ebtables.c:#ifdef CONFIG_NETFILTER_DEBUG
net/ipv4/netfilter/ip_tables.c:#ifdef CONFIG_NETFILTER_DEBUG
net/ipv6/netfilter/ip6_tables.c:#ifdef CONFIG_NETFILTER_DEBUG

Conversions in ebtables.c are not so straight forward, but still
possible to get rid of this.

Make sure Kconfig and defconfig lines also goes away for good.

$ git grep NETFILTER_DEBUG
arch/parisc/configs/c3000_defconfig:CONFIG_NETFILTER_DEBUG=y
arch/sh/configs/se7751_defconfig:CONFIG_NETFILTER_DEBUG=y
include/net/netfilter/nf_conntrack.h:#ifdef CONFIG_NETFILTER_DEBUG
net/Kconfig:config NETFILTER_DEBUG

Same thing for NF_CT_ASSERT(), update it to use WARN_ON() instead.

Actually, you could send two patches: One to update all NF_CT_ASSERT()
to use WARN_ON(), then a patch to remove CONFIG_NETFILTER_DEBUG and
all these _ASSERT() macros.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to