]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Fix compilation failure when CONFIG_NET_FOU!=y
authorArtem Savkov <asavkov@redhat.com>
Tue, 23 Jul 2024 07:10:31 +0000 (09:10 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 29 Jul 2024 22:05:04 +0000 (15:05 -0700)
commitd17f9b370df628a3faaec7fd8be92a89ecc3e33a
treed8089134d2ba388aa3a3a854f7bc979dfbfff641
parenta5f40d596bff182b4b47547712f540885e8fb17b
selftests/bpf: Fix compilation failure when CONFIG_NET_FOU!=y

Without CONFIG_NET_FOU bpf selftests are unable to build because of
missing definitions. Add ___local versions of struct bpf_fou_encap and
enum bpf_fou_encap_type to fix the issue.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240723071031.3389423-1-asavkov@redhat.com
tools/testing/selftests/bpf/progs/test_tunnel_kern.c