]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: remove ipv6_bpf_stub completely and use direct function calls
authorFernando Fernandez Mancera <fmancera@suse.de>
Wed, 25 Mar 2026 12:08:50 +0000 (13:08 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 29 Mar 2026 18:21:24 +0000 (11:21 -0700)
commitad84b1eefe28cee96c572b84bfa4f0fbfd425b68
tree10ee2d975e66b9a437d4ce3e6d481c8381a02779
parentd76f6b170a10414a9c674b6db4bd0473b1b30050
bpf: remove ipv6_bpf_stub completely and use direct function calls

As IPv6 is built-in only, the ipv6_bpf_stub can be removed completely.

Convert all ipv6_bpf_stub usage to direct function calls instead. 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>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20260325120928.15848-10-fmancera@suse.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ipv6.h
include/net/ipv6_stubs.h
net/core/filter.c
net/core/lwt_bpf.c
net/ipv6/af_inet6.c