fujita / libbpf-async

BPF library for Async Rust, complementary for libbpf-rs.
BSD 2-Clause "Simplified" License
18 stars 5 forks source link

Ignore buffers with the "discard" bit set #8

Closed rustn00b closed 1 year ago

rustn00b commented 1 year ago

Prior to this PR, buffers discarded using bpf_ringbuffer_discard were published to the consumer regardless. With this (trivial) change the discarded buffer is just ignored.

fujita commented 1 year ago

Thanks! The CI failure isn't related with this pr so pushed.