Bug 2149243
Summary: | update libbpf to the latest kernel version | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Viktor Malik <vmalik> | |
Component: | libbpf | Assignee: | Viktor Malik <vmalik> | |
Status: | CLOSED ERRATA | QA Contact: | Jon Trossbach <jtrossba> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 9.2 | CC: | zsun | |
Target Milestone: | rc | Keywords: | Triaged | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | libbpf-0.8.0-1.el9 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2157592 (view as bug list) | Environment: | ||
Last Closed: | 2023-05-09 08:24:23 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
Viktor Malik
2022-11-29 10:23:53 UTC
Is there a build you could link for this bz yet? The standard make file seems to be passing but the addition of bench is making it fail make. Is this expected? Do these results look good to you? [root@opicee-6 xdp-tools]# rpm -q libbpf libbpf-devel libbpf-0.8.0-1.el9.x86_64 libbpf-devel-0.8.0-1.el9.x86_64 [root@opicee-6 xdp-tools]# uname -r 5.14.0-212.el9.x86_64 [root@opicee-6 xdp-tools]# ./configure Found clang binary 'clang' with version 15 (from 'clang version 15.0.1 (Red Hat 15.0.1-2.el9)') using emacs: GNU Emacs 27.2 using bpftool v6.8.0 libbpf support: system v0.8.0 perf_buffer__consume support: yes btf__load_from_kernel_by_id support: yes btf__type_cnt support: yes bpf_object__next_map support: yes bpf_object__next_program support: yes bpf_program__insn_cnt support: yes bpf_map_create support: yes perf_buffer__new_raw support: yes bpf_xdp_attach support: yes secure_getenv support: yes [root@opicee-6 xdp-tools]# make lib libxdp CC staticobjs/libxdp.o CC staticobjs/xsk.o M4 xdp-dispatcher.c CLANG xdp-dispatcher.o LLC xdp-dispatcher.o GEN xdp-dispatcher.embed.o CLANG xsk_def_xdp_prog.o LLC xsk_def_xdp_prog.o GEN xsk_def_xdp_prog.embed.o CLANG xsk_def_xdp_prog_5.3.o LLC xsk_def_xdp_prog_5.3.o GEN xsk_def_xdp_prog_5.3.embed.o LINK libxdp.a CC sharedobjs/libxdp.o CC sharedobjs/xsk.o LINK libxdp.so.1.3.0 GEN libxdp.3 util CLANG xdp_sample.bpf.o LLC xdp_sample.bpf.o GEN xdp_sample.skel.h CC params.o CC logging.o CC util.o CC stats.o CC xpcapng.o CC xdp_sample.o testing CLANG test_long_func_name.o LLC test_long_func_name.o CLANG xdp_drop.o LLC xdp_drop.o CLANG xdp_pass.o LLC xdp_pass.o CC test-tool xdp-filter CLANG xdpfilt_dny_udp.o LLC xdpfilt_dny_udp.o CLANG xdpfilt_dny_tcp.o LLC xdpfilt_dny_tcp.o CLANG xdpfilt_dny_ip.o LLC xdpfilt_dny_ip.o CLANG xdpfilt_dny_eth.o LLC xdpfilt_dny_eth.o CLANG xdpfilt_dny_all.o LLC xdpfilt_dny_all.o CLANG xdpfilt_alw_udp.o LLC xdpfilt_alw_udp.o CLANG xdpfilt_alw_tcp.o LLC xdpfilt_alw_tcp.o CLANG xdpfilt_alw_ip.o LLC xdpfilt_alw_ip.o CLANG xdpfilt_alw_eth.o LLC xdpfilt_alw_eth.o CLANG xdpfilt_alw_all.o LLC xdpfilt_alw_all.o CC xdp-filter GEN xdp-filter.8 xdp-loader CC xdp-loader GEN xdp-loader.8 xdp-dump CC xdpdump CLANG xdpdump_bpf.o LLC xdpdump_bpf.o CLANG xdpdump_xdp.o LLC xdpdump_xdp.o GEN xdpdump.8 xdp-bench CLANG xdp_redirect_basic.bpf.o LLC xdp_redirect_basic.bpf.o GEN xdp_redirect_basic.skel.h CLANG xdp_redirect_cpumap.bpf.o LLC xdp_redirect_cpumap.bpf.o GEN xdp_redirect_cpumap.skel.h CLANG xdp_redirect_devmap.bpf.o LLC xdp_redirect_devmap.bpf.o GEN xdp_redirect_devmap.skel.h CLANG xdp_redirect_devmap_multi.bpf.o LLC xdp_redirect_devmap_multi.bpf.o GEN xdp_redirect_devmap_multi.skel.h CLANG xdp_droptx.bpf.o LLC xdp_droptx.bpf.o GEN xdp_droptx.skel.h CC xdp-bench xdp_redirect_devmap.c: In function ‘do_redirect_devmap’: xdp_redirect_devmap.c:79:17: error: implicit declaration of function ‘bpf_map__set_autocreate’; did you mean ‘bpf_map__set_pin_path’? [-Werror=implicit-function-declaration] 79 | bpf_map__set_autocreate(skel->maps.tx_port_native, false); | ^~~~~~~~~~~~~~~~~~~~~~~ | bpf_map__set_pin_path cc1: all warnings being treated as errors xdp_redirect_devmap_multi.c: In function ‘do_redirect_devmap_multi’: xdp_redirect_devmap_multi.c:115:17: error: implicit declaration of function ‘bpf_map__set_autocreate’; did you mean ‘bpf_map__set_pin_path’? [-Werror=implicit-function-declaration] 115 | bpf_map__set_autocreate(skel->maps.forward_map_native, false); | ^~~~~~~~~~~~~~~~~~~~~~~ | bpf_map__set_pin_path cc1: all warnings being treated as errors make[1]: *** [../lib/common.mk:106: xdp-bench] Error 1 make: *** [Makefile:34: xdp-bench] Error 2 This looks good to me. Moving to VERIFIED. [root@sweetpig-19 xdp-tools]# rpm -q libbpf libbpf-devel libbpf-1.0.0-1.el9.x86_64 package libbpf-devel is not installed [root@sweetpig-19 xdp-tools]# uname -r 5.14.0-239.el9.x86_64 [root@sweetpig-19 xdp-tools]# [root@sweetpig-19 xdp-tools]# ./configure Found clang binary 'clang' with version 15 (from 'clang version 15.0.1 (Red Hat 15.0.1-2.el9)') using emacs: GNU Emacs 27.2 using bpftool v7.0.0 libbpf support: submodule v1.0.0 perf_buffer__consume support: yes (submodule) btf__load_from_kernel_by_id support: yes (submodule) btf__type_cnt support: yes (submodule) bpf_object__next_map support: yes (submodule) bpf_object__next_program support: yes (submodule) bpf_program__insn_cnt support: yes (submodule) bpf_map_create support: yes (submodule) perf_buffer__new_raw support: yes (submodule) bpf_xdp_attach support: yes (submodule) bpf_map__set_autocreate support: yes (submodule) zlib support: yes ELF support: yes pcap support: yes secure_getenv support: yes [root@sweetpig-19 xdp-tools]# make lib libbpf CC libbpf/src/libbpf.a INSTALL libbpf/src/libbpf.a libxdp CC staticobjs/libxdp.o CC staticobjs/xsk.o M4 xdp-dispatcher.c CLANG xdp-dispatcher.o LLC xdp-dispatcher.o GEN xdp-dispatcher.embed.o CLANG xsk_def_xdp_prog.o LLC xsk_def_xdp_prog.o GEN xsk_def_xdp_prog.embed.o CLANG xsk_def_xdp_prog_5.3.o LLC xsk_def_xdp_prog_5.3.o GEN xsk_def_xdp_prog_5.3.embed.o LINK libxdp.a CC sharedobjs/libxdp.o CC sharedobjs/xsk.o LINK libxdp.so.1.3.0 GEN libxdp.3 util CLANG xdp_sample.bpf.o LLC xdp_sample.bpf.o GEN xdp_sample.skel.h CC params.o CC logging.o CC util.o CC stats.o CC xpcapng.o CC xdp_sample.o testing CLANG test_long_func_name.o LLC test_long_func_name.o CLANG xdp_drop.o LLC xdp_drop.o CLANG xdp_pass.o LLC xdp_pass.o CC test-tool xdp-filter CLANG xdpfilt_dny_udp.o LLC xdpfilt_dny_udp.o CLANG xdpfilt_dny_tcp.o LLC xdpfilt_dny_tcp.o CLANG xdpfilt_dny_ip.o LLC xdpfilt_dny_ip.o CLANG xdpfilt_dny_eth.o LLC xdpfilt_dny_eth.o CLANG xdpfilt_dny_all.o LLC xdpfilt_dny_all.o CLANG xdpfilt_alw_udp.o LLC xdpfilt_alw_udp.o CLANG xdpfilt_alw_tcp.o LLC xdpfilt_alw_tcp.o CLANG xdpfilt_alw_ip.o LLC xdpfilt_alw_ip.o CLANG xdpfilt_alw_eth.o LLC xdpfilt_alw_eth.o CLANG xdpfilt_alw_all.o LLC xdpfilt_alw_all.o CC xdp-filter GEN xdp-filter.8 xdp-loader CC xdp-loader GEN xdp-loader.8 xdp-dump CC xdpdump CLANG xdpdump_bpf.o LLC xdpdump_bpf.o CLANG xdpdump_xdp.o LLC xdpdump_xdp.o GEN xdpdump.8 xdp-bench CLANG xdp_redirect_basic.bpf.o LLC xdp_redirect_basic.bpf.o GEN xdp_redirect_basic.skel.h CLANG xdp_redirect_cpumap.bpf.o LLC xdp_redirect_cpumap.bpf.o GEN xdp_redirect_cpumap.skel.h CLANG xdp_redirect_devmap.bpf.o LLC xdp_redirect_devmap.bpf.o GEN xdp_redirect_devmap.skel.h CLANG xdp_redirect_devmap_multi.bpf.o LLC xdp_redirect_devmap_multi.bpf.o GEN xdp_redirect_devmap_multi.skel.h CLANG xdp_basic.bpf.o LLC xdp_basic.bpf.o GEN xdp_basic.skel.h CC xdp-bench GEN xdp-bench.8 xdp-monitor CLANG xdp_monitor.bpf.o LLC xdp_monitor.bpf.o GEN xdp_monitor.skel.h CC xdp-monitor GEN xdp-monitor.8 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (libbpf bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2549 |