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: auto-attach skeletons struct_ops #7155

Closed

Conversation

kernel-patches-daemon-bpf[bot]
Copy link

Pull request for series with
subject: libbpf: auto-attach skeletons struct_ops
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=859182

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 0720887
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=859182
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 7015843
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=859182
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: b24862b
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=859182
version: 1

Similarly to `bpf_program`, support `bpf_map` automatic attachment in
`bpf_object__attach_skeleton`. Currently only struct_ops maps could be
attached.

Bpftool
Code-generate links in skeleton struct for struct_ops maps.
Similarly to `bpf_program_skeleton`, set links in `bpf_map_skeleton`.

Libbpf
Extending `bpf_map` with new `autoattach` field to support enabling or
disabling autoattach functionality, introducing getter/setter for this
field.
Extending `bpf_object__(attach|detach)_skeleton` with
attaching/detaching struct_ops maps.

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=859182 irrelevant now. Closing PR.

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot deleted the series/859182=>bpf-next branch June 6, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant