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

Support bpf_xdp_attach and bpf_xdp_detach #205

Closed
insearchoflosttime opened this issue Mar 16, 2022 · 3 comments
Closed

Support bpf_xdp_attach and bpf_xdp_detach #205

insearchoflosttime opened this issue Mar 16, 2022 · 3 comments

Comments

@insearchoflosttime
Copy link
Collaborator

Defined in libbpf as:

LIBBPF_API int bpf_xdp_attach(int ifindex, int prog_fd, __u32 flags,
			      const struct bpf_xdp_attach_opts *opts);
LIBBPF_API int bpf_xdp_detach(int ifindex, __u32 flags,
			      const struct bpf_xdp_attach_opts *opts);

https://github.com/libbpf/libbpf/blob/3591deb9bc6b0848721f831790b78ae0a593b4c5/src/libbpf.h#L898-L901

@insearchoflosttime insearchoflosttime added this to the Feature parity with libbpf-1.0 milestone Mar 16, 2022
@insearchoflosttime insearchoflosttime changed the title Add wrappers for bpf_xdp_attach and bpf_xdp_detach Support bpf_xdp_attach and bpf_xdp_detach Mar 16, 2022
@Noah-Kennedy
Copy link

Is this blocked on anything? If not, I'd be willing to contribute this.

@danielocfb
Copy link
Collaborator

Is this blocked on anything? If not, I'd be willing to contribute this.

I am not aware of any blockers. Please, feel free to go ahead and open a pull request @Noah-Kennedy.

@danielocfb
Copy link
Collaborator

Fixed by #625

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

No branches or pull requests

3 participants