]> git.ipfire.org Git - thirdparty/linux.git/commit
ipv4: drop ipv6_stub usage and use direct function calls
authorFernando Fernandez Mancera <fmancera@suse.de>
Wed, 25 Mar 2026 12:08:48 +0000 (13:08 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 29 Mar 2026 18:21:23 +0000 (11:21 -0700)
commitd98adfbdd5c014f73d5f5e6b43735cc1b2d9450a
tree8758f221e4168850bdf82fca30010ab851ba7484
parent29ae61b2fe7eeafc921a1481230aac4431520418
ipv4: drop ipv6_stub usage and use direct function calls

As IPv6 is built-in only, the ipv6_stub infrastructure is no longer
necessary.

The IPv4 stack interacts with IPv6 mainly to support IPv4 routes with
IPv6 next-hops (RFC 8950). Convert all these cross-family calls from
ipv6_stub to direct function calls. The fallback functions introduced
previously will prevent linkage errors when CONFIG_IPV6 is disabled.

Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
Tested-by: Ricardo B. Marlière <rbm@suse.com>
Link: https://patch.msgid.link/20260325120928.15848-8-fmancera@suse.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/fib_semantics.c
net/ipv4/icmp.c
net/ipv4/nexthop.c
net/ipv4/route.c
net/ipv4/udp.c