Hello! I think I have one more question.
For most of the platforms we support libbpf 1.0.1 works fine but I noticed issues with Debian 11 and Ubuntu 20 about enum declarations: In file included from /tmp/fastnetmon.build.dir.i2Ak87Hs7Y/fastnetmon/src/xdp_plugin/xdp_collector.cpp:14: /opt/fastnetmon-community/libraries/libbpf_1_0_1/include/bpf/bpf.h:396:6: error: use of enum 'bpf_stats_type' without previous declaration 396 | enum bpf_stats_type; /* defined in up-to-date linux/bpf.h */ | ^~~~~~~~~~~~~~ /opt/fastnetmon-community/libraries/libbpf_1_0_1/include/bpf/bpf.h:397:38: error: use of enum 'bpf_stats_type' without previous declaration 397 | LIBBPF_API int bpf_enable_stats(enum bpf_stats_type type); | ^~~~~~~~~~~~~~ In file included from /tmp/fastnetmon.build.dir.i2Ak87Hs7Y/fastnetmon/src/xdp_plugin/xdp_collector.cpp:15: /opt/fastnetmon-community/libraries/libbpf_1_0_1/include/bpf/libbpf.h:70:54: error: use of enum 'bpf_link_type' without previous declaration 70 | LIBBPF_API const char *libbpf_bpf_link_type_str(enum bpf_link_type t); | ^~~~~~~~~~~~ Did you experience similar errors previously by any chance? Thank you! On Tue, 8 Nov 2022 at 16:55, Pavel Odintsov <pavel.odint...@gmail.com> wrote: > Hello! > > Added copy to all. > > I think I fixed it with these commits: > https://github.com/pavel-odintsov/fastnetmon/commit/c48497a6f109fc1a9f5da596b055c3b7cffb96d4 > and > https://github.com/pavel-odintsov/fastnetmon/commit/c718e88d0b25dcfbd724e9820f592fd5782eca6c > > I've used > https://lore.kernel.org/bpf/20220202225916.3313522-7-and...@kernel.org/ > and > https://lxr.missinglinkelectronics.com/linux+v5.19/samples/bpf/xdp1_user.c > as examples as this code was my reference during implementation. > > Would be great if you could review it a second time. > > Thank you! > > On Mon, 7 Nov 2022 at 11:59, Sudip Mukherjee <sudipm.mukher...@gmail.com> > wrote: > >> Hi Pavel, >> >> On Mon, Nov 7, 2022 at 11:53 AM Pavel Odintsov <pavel.odint...@gmail.com> >> wrote: >> > >> > Hello! >> > >> > Thank you for reaching me. >> > >> > Sure, I'll be happy to check. >> > >> > May I kindly ask what exactly changed to trigger these errors? I >> believe it was successfully built previously. >> >> Its the update of libbpf to v1.0.1 which removed some of the deprecated >> API. >> >> >> -- >> Regards >> Sudip >> > > > -- > Sincerely yours, Pavel Odintsov > -- Sincerely yours, Pavel Odintsov