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

Loading of XDP program fails with prog 'xdp_prog1': missing BPF prog type, check ELF section name 'xdp-prog1' #399

Open
Simonacb opened this issue Mar 4, 2024 · 1 comment

Comments

@Simonacb
Copy link

Simonacb commented Mar 4, 2024

I need to load 2 prog in my xdp program and here is my defintion:

SEC("xdp-prog1") 
int xdp_prog1(struct xdp_md *ctx) {
    ...
    return XDP_PASS;
}
SEC("xdp-prog2")
int xdp_prog2(struct xdp_md *ctx) {
    ...
    return XDP_PASS;
}

and the error log is here:

libbpf: prog 'xdp_prog1': missing BPF prog type, check ELF section name 'xdp-prog1'
libbpf: prog 'xdp_prog1': failed to load: -22

and I'm using the latest libxdp.
How can I fixed the problem? Thanks!

@tohojo
Copy link
Member

tohojo commented Mar 5, 2024 via email

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

2 participants