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

bcc: Replace deprecated libbpf API #3937

Merged
merged 2 commits into from
Apr 25, 2022

Conversation

chenhengqi
Copy link
Collaborator

Signed-off-by: Hengqi Chen [email protected]

@@ -1554,7 +1554,7 @@ int bpf_attach_xdp(const char *dev_name, int progfd, uint32_t flags) {
return -1;
}

ret = bpf_set_link_xdp_fd(ifindex, progfd, flags);
ret = bpf_xdp_attach(ifindex, progfd, flags, NULL);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the only legacy API that BCC uses in its entire code base?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add another commit for libbpf-tools.

Previously, in #3787, #3790, #3909 we have replaced much of them.

Replace deprecated libbpf API bpf_set_link_xdp_fd with
bpf_xdp_attach.

Signed-off-by: Hengqi Chen <[email protected]>
Replace deprecated libbpf API bpf_map__resize with
bpf_map__set_max_entries.

Signed-off-by: Hengqi Chen <[email protected]>
@yonghong-song yonghong-song merged commit 70ccb18 into iovisor:master Apr 25, 2022
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.

3 participants