[PATCH net-next v4 01/16] ipv4: introduce CONFIG_IPV4 to decouple the IPv4 stack

Matthieu Baerts matttbe at kernel.org
Tue Dec 1 03:25:41 PST 2026


Hi Fernando,

On 27/11/2026 18:17, Fernando Fernandez Mancera wrote:
> Historically, the IPv4 protocol has been linked to the core INET
> subsystem. Because shared infrastructure like the TCP/UDP engine,
> routing or INET hashtables live inside net/ipv4/, it has been impossible
> to compile a kernel with only IPv6 support.
> 
> This patch introduces the CONFIG_IPV4 Kconfig symbol, which is set to
> 'def_bool y' for now. This does not allow to completely disable the
> IPv4 stack yet but it lays the necessary build-system work for that
> goal.
> 
> In addition, multiple subsystems Kconfig symbols across networking
> features like tunnels, drivers and filesystems have been adjusted to
> depend on IPv4. Keep on mind that follow-up work is required to convert
> the Kconfig symbol to bool and remove the dependency on IPv4 where it
> makes sense.

Thank you for implementing April fool jokes^H^H^H^H looking at that! :)

(...)
>  net/mptcp/Kconfig                             |  2 +-

(...)

> diff --git a/net/mptcp/Kconfig b/net/mptcp/Kconfig
> index be71fc9b4638..c5b660fdda4c 100644
> --- a/net/mptcp/Kconfig
> +++ b/net/mptcp/Kconfig
> @@ -1,7 +1,7 @@
>  
>  config MPTCP
>  	bool "MPTCP: Multipath TCP"
> -	depends on INET
> +	depends on INET && IPV4
>  	select SKB_EXTENSIONS
>  	select CRYPTO_LIB_SHA256
>  	select CRYPTO_LIB_UTILS

For MPTCP:

Acked-by: Matthieu Baerts (NGI0) <matttbe at kernel.org>  # mptcp

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.




More information about the Linux-nvme mailing list