From d101c824dacdc6a2bc7d75eff07106452e71c5dc Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Tue, 7 Nov 2023 22:55:21 +0100 Subject: sys/linux: add BPF_RB_* flags for ringbuf helpers BPF helpers bpf_ringbuf_{discard,submit,output} take a set of flags. This commit describes those flags. The default is a zero value, but the kernel doesn't have a macro for that. Thus, "0" is simply added to the flag definition. Note bpf_ringbuf_reserve also has a flags argument, but it is currently unused on the kernel side. Signed-off-by: Paul Chaignon --- sys/linux/bpf.txt.const | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/linux/bpf.txt.const') diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const index 53cfb9bd7..6ce73ca73 100644 --- a/sys/linux/bpf.txt.const +++ b/sys/linux/bpf.txt.const @@ -66,11 +66,11 @@ BPF_EXIST = 2 BPF_EXIT0 = 9 BPF_FLOW_DISSECTOR = 17 BPF_FUNC_INFO_SIZE = 8 -BPF_FUNC_ringbuf_output = 130 BPF_FUNC_ringbuf_discard = 133 +BPF_FUNC_ringbuf_output = 130 +BPF_FUNC_ringbuf_query = 134 BPF_FUNC_ringbuf_reserve = 131 BPF_FUNC_ringbuf_submit = 132 -BPF_FUNC_ringbuf_query = 134 BPF_FUNC_snprintf = 165 BPF_FUNC_tail_call = 12 BPF_FUNC_trace_printk = 6 @@ -249,6 +249,8 @@ BPF_PSEUDO_MAP_FD = 1 BPF_PSEUDO_MAP_IDX = 5 BPF_PSEUDO_MAP_IDX_VALUE = 6 BPF_PSEUDO_MAP_VALUE = 2 +BPF_RB_FORCE_WAKEUP = 2 +BPF_RB_NO_WAKEUP = 1 BPF_REG_0 = 0 BPF_REG_1 = 1 BPF_REG_10 = 10 -- cgit mrf-deployment