summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorJohn Fastabend <john.fastabend@gmail.com>2018-04-23 21:11:02 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2018-04-23 23:42:21 +0200
commit514d6c1959f9b396f1b51850925900adedffb951 (patch)
treef806288e530b2d6623b599123bea3d229a37d68d /samples
parentbpf: disable and restore preemption in __BPF_PROG_RUN_ARRAY (diff)
downloadlinux-514d6c1959f9b396f1b51850925900adedffb951.tar.xz
linux-514d6c1959f9b396f1b51850925900adedffb951.zip
bpf: Document sockmap '-target bpf' requirement for PROG_TYPE_SK_MSG
BPF_PROG_TYPE_SK_MSG programs use a 'void *' for both data and the data_end pointers. Additionally, the verifier ensures that every accesses into the values is a __u64 read. This correctly maps on to the BPF 64-bit architecture. However, to ensure that when building on 32bit architectures that clang uses correct types the '-target bpf' option _must_ be specified. To make this clear add a note to the Documentation. Signed-off-by: John Fastabend <john.fastabend@gmail.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions