]> git.ipfire.org Git - thirdparty/suricata.git/commit
ebpf: Update eBPF map to BTF defined map 9978/head
authorVincent Li <vincent.mc.li@gmail.com>
Wed, 2 Aug 2023 20:31:54 +0000 (20:31 +0000)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Dec 2023 20:16:23 +0000 (21:16 +0100)
commit64d12aacc8f462318ee7cc9b06dffaca84548d4d
treebb2e119b2f13256c259814a575a7be1a091a2afe
parent9aeeac532eadc57c399b17d364d7337c5c69bd8e
ebpf: Update eBPF map to BTF defined map

legacy map definition is removed from libbpf1.0+.
update the legacy map definition to BTF defined map.

Distros with < libbpf1.0 (0.5, 0.6, 0.7, 0.8) bpf_helpers.h
support BTF map definition, this change does not break
old libbpf and support new libpbf1.0+.

Bug: #6250

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
Co-authored-by: Victor Julien <vjulien@oisf.net>
.github/workflows/builds.yml
configure.ac
ebpf/Makefile.am
ebpf/bpf_helpers.h [deleted file]
ebpf/bypass_filter.c
ebpf/filter.c
ebpf/lb.c
ebpf/llvm_bpfload.h [new file with mode: 0644]
ebpf/vlan_filter.c
ebpf/xdp_filter.c
ebpf/xdp_lb.c