]> git.proxmox.com Git - mirror_qemu.git/commit
ebpf: fix compatibility with libbpf 1.0+
authorShreesh Adiga <16567adigashreesh@gmail.com>
Sun, 18 Dec 2022 14:39:27 +0000 (20:09 +0530)
committerJason Wang <jasowang@redhat.com>
Fri, 10 Mar 2023 09:26:47 +0000 (17:26 +0800)
commit197a137290103993b33f93c90e788ab4984f103a
treeaf5b73de58fd5b060766d0fee0b1b586f3595b03
parent136e9dbad8b90c16ddfcb0bc986150f4b2a59eb2
ebpf: fix compatibility with libbpf 1.0+

The current implementation fails to load on a system with
libbpf 1.0 and reports that legacy map definitions in 'maps'
section are not supported by libbpf v1.0+. This commit updates
the Makefile to add BTF (-g flag) and appropriately updates
the maps in rss.bpf.c and update the skeleton file in repo.

Signed-off-by: Shreesh Adiga <16567adigashreesh@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
ebpf/rss.bpf.skeleton.h
tools/ebpf/Makefile.ebpf
tools/ebpf/rss.bpf.c