summaryrefslogtreecommitdiffstats
path: root/Documentation/bpf/bpf_devel_QA.txt (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bpf, doc: rename txt files to rst filesJesper Dangaard Brouer2018-05-151-570/+0
| | | | | | | | | | This will cause them to get auto rendered, e.g. when viewing them on GitHub. Followup patches will correct the content to be RST compliant. Also adjust README.rst to point to the renamed files. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
* bpf: Document sockmap '-target bpf' requirement for PROG_TYPE_SK_MSGJohn Fastabend2018-04-231-1/+9
| | | | | | | | | | | | | | | 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>
* bpf, doc: add description wrt native/bpf clang target and pointer sizeDaniel Borkmann2018-03-201-0/+12
| | | | | | | | | As this recently came up on netdev [0], lets add it to the BPF devel doc. [0] https://www.spinics.net/lists/netdev/msg489612.html Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
* bpf: add documentation to compare clang "-target bpf" and default targetYonghong Song2018-02-021-0/+31
| | | | | | | | | The added documentation explains how generated codes may differ between clang bpf target and default target, and when to use each target. Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
* bpf, doc: add faq about bpf development processDaniel Borkmann2017-12-061-0/+519
In the same spirit of netdev FAQ, start a BPF FAQ as a collection of expectations and/or workflow details in the context of BPF patch processing. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>