Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libbpf update #156

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Libbpf update #156

wants to merge 2 commits into from

Conversation

tohojo
Copy link
Member

@tohojo tohojo commented Sep 28, 2020

This is the minimum conversion needed to update libbpf (as suggested in #155); should we keep it at this, or also port the map definitions to new-style BTF while we're at it?

@netoptimizer WDYT?

Newer versions of libbpf link against zlib, so also add -lz to the linker
flags when compiling userspace programs, and add zlib to the list of
packages to install in setup_dependencies.org.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
…le()

Newer versions of libbpf deprecated bpf_program__title(), so change all
uses to bpf_program__section_name() to silence the warning.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
@tohojo
Copy link
Member Author

tohojo commented Sep 28, 2020

Hmm, going through a bunch of old issues, it seems that we may end up with issues using iproute2 as the loader, so maybe we should hold off on this until that is updated to use libbpf - or just switch over to recommending xdp-tools.

Anyway, I think it's better to just do the minimal here for now...

@tohojo tohojo marked this pull request as ready for review September 28, 2020 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant