libbpf: Clarify flags in ringbuf helpers
authorPedro Tammela <pctammela@gmail.com>
Mon, 12 Apr 2021 19:24:32 +0000 (16:24 -0300)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 13 Apr 2021 04:28:33 +0000 (21:28 -0700)
commit5c507329000e282dce91e6c98ee6ffa61a8a5e49
treecde581c86fcce3f7041a4039161d535497def5eb
parentaadb2bb83ff789de63b48b4edeab7329423a50d3
libbpf: Clarify flags in ringbuf helpers

In 'bpf_ringbuf_reserve()' we require the flag to '0' at the moment.

For 'bpf_ringbuf_{discard,submit,output}' a flag of '0' might send a
notification to the process if needed.

Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210412192434.944343-1-pctammela@mojatatu.com
include/uapi/linux/bpf.h
tools/include/uapi/linux/bpf.h