From: sashiko-bot@kernel.org
To: "Fernando Fernandez Mancera" <fmancera@suse.de>
Cc: sven@narfation.org,
"Christian Borntraeger" <borntraeger@linux.ibm.com>,
marek.lindner@mailbox.org, sw@simonwunderlich.de,
"Jeff Layton" <jlayton@kernel.org>,
antonio@mandelbit.com, mptcp@lists.linux.dev,
linux-rdma@vger.kernel.org, "Heiko Carstens" <hca@linux.ibm.com>,
linux-scsi@vger.kernel.org, "Anna Schumaker" <anna@kernel.org>,
linux-s390@vger.kernel.org,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Chuck Lever" <cel@kernel.org>
Subject: Re: [PATCH 01/13 net-next] net: ipv4: introduce CONFIG_IPV4 to decouple the IPv4 stack
Date: Fri, 11 Sep 2026 15:15:38 +0000 [thread overview]
Message-ID: <20260911151538.6FBC61F00898@smtp.kernel.org> (raw)
In-Reply-To: <20260910144914.8025-2-fmancera@suse.de>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Layer-2 networking features and core drivers incorrectly depend on IPV4, breaking INET=n builds.
--
commit a6e6a467093e978fadc9f73c8f0d22f0bf0ee577
Author: Fernando Fernandez Mancera <fmancera@suse.de>
Subject: net: ipv4: introduce CONFIG_IPV4 to decouple the IPv4 stack
Historically, the IPv4 protocol has been linked to the core INET subsystem.
This patch introduces the CONFIG_IPV4 Kconfig symbol and adds it as a
dependency to multiple networking Kconfig symbols.
> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
> index 925ee25d05b47..86b0884968b67 100644
> --- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
> +++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
> @@ -12,6 +12,7 @@ config MLX5_CORE
> depends on PTP_1588_CLOCK_OPTIONAL
> depends on PCI_HYPERV_INTERFACE || !PCI_HYPERV_INTERFACE
> depends on HWMON || !HWMON
> + depends on IPV4
[Severity: High]
Does adding this dependency on IPV4 mean the Mellanox core driver can no
longer be used for L2/DPDK in IP-less kernels?
The IPV4 symbol is sourced inside the if INET block in net/Kconfig, so it
evaluates to n when INET=n. This seems to prevent selecting MLX5_CORE without
TCP/IP, which causes a regression for valid Layer-2-only kernel configurations.
[ ... ]
> diff --git a/net/bridge/Kconfig b/net/bridge/Kconfig
> index 318715c8fc9bc..421892a031299 100644
> --- a/net/bridge/Kconfig
> +++ b/net/bridge/Kconfig
> @@ -7,6 +7,7 @@ config BRIDGE
> tristate "802.1d Ethernet Bridging"
> select LLC
> select STP
> + depends on IPV4
[Severity: High]
Is it intentional that Ethernet bridging requires IPV4 here?
Bridging is a Layer-2 feature that does not require INET, but since IPV4 is
evaluated as n in INET=n builds, this completely disables bridging in kernels
configured without TCP/IP, resulting in a configuration regression.
[ ... ]
> diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig
> index d6bc295e23a1a..ec485da283730 100644
> --- a/net/mac80211/Kconfig
> +++ b/net/mac80211/Kconfig
> @@ -1,7 +1,7 @@
> # SPDX-License-Identifier: GPL-2.0-only
> config MAC80211
> tristate "Generic IEEE 802.11 Networking Stack (mac80211)"
> - depends on CFG80211
> + depends on CFG80211 && IPV4
[Severity: High]
Does the generic 802.11 stack need to be rendered unavailable if INET=n?
Since it does not require IP, adding the IPV4 dependency seems to cause a
regression for valid Layer-2-only configurations.
[ ... ]
> diff --git a/net/packet/Kconfig b/net/packet/Kconfig
> index 2997382d597c2..00fda9e08cb0b 100644
> --- a/net/packet/Kconfig
> +++ b/net/packet/Kconfig
> @@ -5,6 +5,7 @@
>
> config PACKET
> tristate "Packet socket"
> + depends on IPV4
[Severity: High]
Can packet sockets (AF_PACKET) still be used when INET=n?
They provide direct Layer-2 access and are independent of INET, but this
dependency causes a regression by making them unavailable in INET=n builds.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260910144914.8025-1-fmancera@suse.de?part=1
next prev parent reply other threads:[~2026-09-11 15:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260910144914.8025-1-fmancera@suse.de>
2026-09-10 14:48 ` [PATCH 01/13 net-next] net: ipv4: introduce CONFIG_IPV4 to decouple the IPv4 stack Fernando Fernandez Mancera
2026-09-10 15:11 ` Nicolai Buchwitz
2026-09-10 15:32 ` Fernando Fernandez Mancera
2026-09-10 15:36 ` Arnd Bergmann
2026-09-10 16:22 ` Fernando Fernandez Mancera
2026-09-10 16:30 ` Fernando Fernandez Mancera
2026-09-10 16:56 ` Sven Eckelmann
2026-09-11 18:39 ` Fernando Fernandez Mancera
2026-09-10 18:55 ` Chuck Lever
2026-09-11 15:15 ` sashiko-bot [this message]
2026-09-11 17:46 ` Casey Schaufler
2026-09-11 18:31 ` Fernando Fernandez Mancera
2026-09-11 18:59 ` Casey Schaufler
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=20260911151538.6FBC61F00898@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=anna@kernel.org \
--cc=antonio@mandelbit.com \
--cc=borntraeger@linux.ibm.com \
--cc=cel@kernel.org \
--cc=fmancera@suse.de \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=jlayton@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=marek.lindner@mailbox.org \
--cc=mptcp@lists.linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sven@narfation.org \
--cc=sw@simonwunderlich.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox