diff options
author | Jesper Dangaard Brouer | 2018-01-17 12:05:36 +0100 |
---|---|---|
committer | Daniel Borkmann | 2018-01-18 22:12:38 +0100 |
commit | cb5f7334d479414adc6afe60105283277e297489 (patch) | |
tree | 4f64b36c2ef1d8fa30c74a9bd262a247e33e14c9 /include/uapi/linux/bpf.h | |
parent | bpf: change fake_ip for bpf_trace_printk helper (diff) | |
download | kernel-qcow2-linux-cb5f7334d479414adc6afe60105283277e297489.tar.gz kernel-qcow2-linux-cb5f7334d479414adc6afe60105283277e297489.tar.xz kernel-qcow2-linux-cb5f7334d479414adc6afe60105283277e297489.zip |
bpf: add comments to BPF ld/ldx sizes
Doc BPF ld/ldx size defines as comments in code, as it makes in
faster to lookup in a programming/review setting, than looking up
the sizes in Documentation/networking/filter.txt.
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/uapi/linux/bpf.h')
-rw-r--r-- | include/uapi/linux/bpf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 7c2259e8bc54..74dc4dc98681 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -17,7 +17,7 @@ #define BPF_ALU64 0x07 /* alu mode in double word width */ /* ld/ldx fields */ -#define BPF_DW 0x18 /* double word */ +#define BPF_DW 0x18 /* double word (64-bit) */ #define BPF_XADD 0xc0 /* exclusive add */ /* alu/jmp fields */ |