From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Fernando Fernandez Mancera <fmancera@suse.de>
Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
phil@nwl.cc, fw@strlen.de
Subject: Re: [PATCH nf-next] netfilter: Kconfig: make NF_FLOW_TABLE_INET depend on NF_TABLES_INET
Date: Fri, 10 Apr 2026 03:09:29 +0200 [thread overview]
Message-ID: <adhNyRO3j4Fw5_ml@chamomile> (raw)
In-Reply-To: <20260326144246.4430-1-fmancera@suse.de>
On Thu, Mar 26, 2026 at 03:42:46PM +0100, Fernando Fernandez Mancera wrote:
> As it is not possible to create an inet flowtable without a parent table
> on inet family, it makes sense that Kconfig NF_FLOW_TABLE_INET symbol
> depends on NF_TABLES_INET. This reduces the kernel image size a bit when
> compiling the kernel with CONFIG_IPV6=n.
The nf_flow_table_inet.c file also defines ipv4 and ipv6:
static struct nf_flowtable_type flowtable_ipv4 = {
.family = NFPROTO_IPV4,
.init = nf_flow_table_init,
.setup = nf_flow_table_offload_setup,
.action = nf_flow_rule_route_ipv4,
.free = nf_flow_table_free,
.hook = nf_flow_offload_ip_hook,
.owner = THIS_MODULE,
};
static struct nf_flowtable_type flowtable_ipv6 = {
.family = NFPROTO_IPV6,
.init = nf_flow_table_init,
.setup = nf_flow_table_offload_setup,
.action = nf_flow_rule_route_ipv6,
.free = nf_flow_table_free,
.hook = nf_flow_offload_ipv6_hook,
.owner = THIS_MODULE,
};
The file name is a bit misleading, someone decide to squash ipv4, ipv6
and _inet_ into the same file.
> Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
> ---
> net/netfilter/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
> index 6cdc994fdc8a..c50f2ad67b51 100644
> --- a/net/netfilter/Kconfig
> +++ b/net/netfilter/Kconfig
> @@ -717,6 +717,7 @@ endif # NF_TABLES
> config NF_FLOW_TABLE_INET
> tristate "Netfilter flow table mixed IPv4/IPv6 module"
> depends on NF_FLOW_TABLE
> + depends on NF_TABLES_INET
> help
> This option adds the flow table mixed IPv4/IPv6 support.
>
> --
> 2.53.0
>
next prev parent reply other threads:[~2026-04-10 1:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-26 14:42 [PATCH nf-next] netfilter: Kconfig: make NF_FLOW_TABLE_INET depend on NF_TABLES_INET Fernando Fernandez Mancera
2026-04-10 1:09 ` Pablo Neira Ayuso [this message]
2026-04-10 8:12 ` Fernando Fernandez Mancera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=adhNyRO3j4Fw5_ml@chamomile \
--to=pablo@netfilter.org \
--cc=coreteam@netfilter.org \
--cc=fmancera@suse.de \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=phil@nwl.cc \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.