Dmitry V. Levin
cb3a15fe21
* xlat/bpf_attach_type.in: Add "#value_indexed" directive. * xlat/bpf_class.in: Likewise. * xlat/bpf_map_types.in: Likewise. * xlat/bpf_map_update_elem_flags.in: Likewise. * xlat/bpf_prog_types.in: Likewise. * xlat/ebpf_class.in: Likewise. * bpf_filter.c (print_bpf_filter_code): Use printxval_index instead of printxval for decoding bpf_class and ebpf_class. * print_fields.h (PRINT_FIELD_XVAL_INDEX): New macro. * bpf.c: Use it instead of PRINT_FIELD_XVAL for decoding bpf_attach_type, bpf_map_types, bpf_map_update_elem_flags, and bpf_prog_types.
5 lines
51 B
Plaintext
5 lines
51 B
Plaintext
#value_indexed
|
|
BPF_ANY 0
|
|
BPF_NOEXIST 1
|
|
BPF_EXIST 2
|