[aya-ebpf-macros] No longer able to set name with `#[xdp(name = "..")]`
fenollp opened this issue · 1 comments
fenollp commented
Error seen:
error: invalid argument
--> src/bin/pass.rs:6:7
|
6 | #[xdp(name = "pass")]
| ^^^^
Version that reproduces the error:
cargo tree --locked --frozen --offline --target=all --all-features --format "{p} {f}" -i aya-ebpf-macros
aya-ebpf-macros v0.1.0 (proc-macro) (http://github.com/aya-rs/aya?branch=main#0ec87f6e)
Older version, that supports name = ".."
:
aya-bpf-macros v0.1.0 (proc-macro) (http://github.com/aya-rs/aya?branch=main#4cc0ea09)
If this regression was intended, could you point to a workaround? Thanks!
alessandrod commented
For compatibility with other BPF loaders, this is no longer supported. The program name now is always the name of the function. You can customize it by... changing the name of the function.