mirror of https://github.com/aya-rs/aya
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.
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 | |
---|---|---|
.. | ||
src | 3 years ago | |
Cargo.toml | 4 years ago | |
build.rs | 4 years ago |