You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/bpf
Kenjiro Nakayama 05419829d3 Return non error only when helper function returns `0` in queue map
As described in https://github.com/aya-rs/aya/issues/288,
queue does not return `error` even calling pop() from the empty queue.

This is because the helper functions (`bpf_map_pop_elem()`)
does not return negative value for Rust/aya correctly.

The `bpf_map_pop_elem()` and `bpf_map_push_elem()`
returns `0` on success - https://man7.org/linux/man-pages/man7/bpf-helpers.7.html, so this patch
changes the condition as only `0` on success.

Fix https://github.com/aya-rs/aya/issues/288
3 years ago
..
aya-bpf Return non error only when helper function returns `0` in queue map 3 years ago
aya-bpf-bindings Add riscv64 bindings 3 years ago
aya-bpf-cty bpf: Fix clippy warnings 4 years ago
aya-bpf-macros Don't use #[no_mangle] (clashes with `#[export_name]`) 3 years ago
Cargo.toml bpf: add aya-bpf-bindings 4 years ago