public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Deprecate Legacy IP
@ 2026-04-01  7:44 David Woodhouse
  2026-04-01  7:44 ` [PATCH 1/6] net: Simplify tautological CONFIG_INET/CONFIG_IPV6 guards David Woodhouse
                   ` (8 more replies)
  0 siblings, 9 replies; 25+ messages in thread
From: David Woodhouse @ 2026-04-01  7:44 UTC (permalink / raw)
  To: Saeed Mahameed, Leon Romanovsky, Tariq Toukan, Mark Bloch,
	Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Simon Horman, Nikolay Aleksandrov, Ido Schimmel,
	Martin KaFai Lau, Daniel Borkmann, John Fastabend,
	Stanislav Fomichev, Alexei Starovoitov, Andrii Nakryiko,
	Eduard Zingerman, Song Liu, Yonghong Song, KP Singh, Hao Luo,
	Jiri Olsa, Kuniyuki Iwashima, Willem de Bruijn, David Ahern,
	Neal Cardwell, Johannes Berg, Pablo Neira Ayuso, Florian Westphal,
	Phil Sutter, Guillaume Nault, David Woodhouse, Kees Cook,
	Alexei Lazar, Gal Pressman, Paul Moore, netdev, linux-rdma,
	linux-kernel, oss-drivers, bridge, bpf, linux-wireless,
	netfilter-devel, coreteam, torvalds, jon.maddog.hall

RFC1883, the IPv6 standard, was published in the final decade of the 1900s.
That's closer in time to the Apollo 11 moon landing than it was to today.

Even our esteemed Maddog has worked with computers for longer in the IPv6
era, than he ever did before it.

Yet Linux still can't even be *built* with only IPv6 support and without
support for Legacy IP. This long overdue patch series fixes that, and
immediately marks Legacy IP for deprecation.

It also cleans up a few tautological "INET && IPV6" and "INET || IPV6"
checks, since IPV6 (and now LEGACY_IP) cannot be selected without the
overall CONFIG_INET option.

For now, we only add a warning when a process *listens* on a Legacy IP
socket (since you can listen on IPv6 and still accept connections which
have come through a timewarp from the 20th century. Adding warnings for
making outbound connections or *accepting* on Legacy IP can come later.

  'I would be happy if "Legacy IP" ceased to be the "industry standard"
   and IPv6 be the default, even if I had to beat IPv6 into the head of
   every single network administrator's head with a shovel.' said Jon
  'maddog' Hall, ancient supporter of Free and Open Source Software.

David Woodhouse (6):
      net: Simplify tautological CONFIG_INET/CONFIG_IPV6 guards
      net: Add CONFIG_LEGACY_IP option
      net: Guard Legacy IP entry points with CONFIG_LEGACY_IP
      net: Make IPv4-only Kconfig options depend on LEGACY_IP
      net: Change CONFIG_INET to CONFIG_LEGACY_IP for IPv4-only code
      net: Warn when processes listen on AF_INET sockets

 .../net/ethernet/mellanox/mlx5/core/en/tc_tun.c    |  6 ++--
 .../net/ethernet/mellanox/mlx5/core/en/tc_tun.h    |  2 +-
 .../ethernet/mellanox/mlx5/core/en/tc_tun_encap.c  |  2 +-
 .../ethernet/netronome/nfp/flower/tunnel_conf.c    |  2 +-
 include/linux/indirect_call_wrapper.h              |  4 ++-
 net/bridge/br_arp_nd_proxy.c                       |  2 +-
 net/bridge/br_private.h                            |  8 +++++
 net/core/filter.c                                  | 12 +++----
 net/core/secure_seq.c                              |  2 +-
 net/core/sock.c                                    |  2 +-
 net/ipv4/Kconfig                                   | 37 ++++++++++++++++++++++
 net/ipv4/af_inet.c                                 | 23 +++++++++++---
 net/ipv4/devinet.c                                 |  2 ++
 net/ipv4/route.c                                   |  1 -
 net/ipv4/tcp_ipv4.c                                | 30 ++++++++++--------
 net/mac80211/main.c                                | 10 +++---
 net/netfilter/nfnetlink_queue.c                    |  2 +-
 17 files changed, 105 insertions(+), 42 deletions(-)


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2026-04-02 20:27 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01  7:44 [PATCH 0/6] Deprecate Legacy IP David Woodhouse
2026-04-01  7:44 ` [PATCH 1/6] net: Simplify tautological CONFIG_INET/CONFIG_IPV6 guards David Woodhouse
2026-04-01  7:44 ` [PATCH 2/6] net: Add CONFIG_LEGACY_IP option David Woodhouse
2026-04-01  9:01   ` bot+bpf-ci
2026-04-01  7:44 ` [PATCH 3/6] net: Guard Legacy IP entry points with CONFIG_LEGACY_IP David Woodhouse
2026-04-01  9:14   ` Eric Dumazet
2026-04-01  9:34     ` David Woodhouse
2026-04-01  9:38   ` bot+bpf-ci
2026-04-01  7:44 ` [PATCH 4/6] net: Make IPv4-only Kconfig options depend on LEGACY_IP David Woodhouse
2026-04-01  8:36   ` bot+bpf-ci
2026-04-01  7:44 ` [PATCH 5/6] net: Change CONFIG_INET to CONFIG_LEGACY_IP for IPv4-only code David Woodhouse
2026-04-01  9:01   ` bot+bpf-ci
2026-04-01  7:44 ` [PATCH 6/6] net: Warn when processes listen on AF_INET sockets David Woodhouse
2026-04-01  9:11   ` Eric Dumazet
2026-04-01  9:28     ` David Woodhouse
2026-04-01 15:06       ` Stephen Hemminger
2026-04-01 16:25         ` Linus Torvalds
2026-04-02  0:20         ` Jakub Kicinski
2026-04-01  9:26   ` bot+bpf-ci
2026-04-01 16:20   ` Stanislav Fomichev
2026-04-01  8:07 ` [PATCH 0/6] Deprecate Legacy IP Fernando Fernandez Mancera
2026-04-01  8:25   ` David Woodhouse
2026-04-02 20:27     ` Mauro Carvalho Chehab
2026-04-01 16:35 ` Bjoern A. Zeeb
2026-04-02  0:24 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox