aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPedro Tammela2021-03-25 12:01:15 -0300
committerAndrii Nakryiko2021-03-25 21:13:24 -0700
commit6032ebb54c60cae24329f6aba3ce0c1ca8ad6abe (patch)
treee4ad349834f0f3a96193e5e38b9e3e8f1809b068 /Makefile
parent002322402dafd846c424ffa9240a937f49b48c42 (diff)
libbpf: Fix bail out from 'ringbuf_process_ring()' on error
The current code bails out with negative and positive returns. If the callback returns a positive return code, 'ring_buffer__consume()' and 'ring_buffer__poll()' will return a spurious number of records consumed, but mostly important will continue the processing loop. This patch makes positive returns from the callback a no-op. Fixes: bf99c936f947 ("libbpf: Add BPF ring buffer support") Signed-off-by: Pedro Tammela <pctammela@mojatatu.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210325150115.138750-1-pctammela@mojatatu.com
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions