]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: Emit struct bpf_xdp_sock type in vmlinux BTF
authorAmery Hung <ameryhung@gmail.com>
Thu, 25 Sep 2025 17:00:12 +0000 (10:00 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 25 Sep 2025 21:29:46 +0000 (14:29 -0700)
commitbc8712f2b5250825968e6b0c3d2709a4b9d5d570
treef53b52c3c847c7d32c5d34762323c63b7846cfb8
parent5730dacb3f172858ca47b8b1aeab083b5713f24b
bpf: Emit struct bpf_xdp_sock type in vmlinux BTF

Similar to other BPF UAPI struct, force emit BTF of struct bpf_xdp_sock
so that it is defined in vmlinux.h.

In a later patch, a selftest will use vmlinux.h to get the definition of
struct bpf_xdp_sock instead of bpf.h.

Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250925170013.1752561-1-ameryhung@gmail.com
net/core/filter.c