5 This directory contains documentation for the BPF (Berkeley Packet
6 Filter) facility, with a focus on the extended BPF version (eBPF).
8 This kernel side documentation is still work in progress. The main
9 textual documentation is (for historical reasons) described in
10 :ref:`networking-filter`, which describe both classical and extended
12 The Cilium project also maintains a `BPF and XDP Reference Guide`_
13 that goes into great technical depth about the BPF Architecture.
18 Documentation/bpf/libbpf/libbpf.rst is a userspace library for loading and interacting with bpf programs.
29 Frequently asked questions (FAQ)
30 ================================
32 Two sets of Questions and Answers (Q&A) are maintained.
43 The primary info for the bpf syscall is available in the `man-pages`_
44 for `bpf(2)`_. For more information about the userspace API, see
45 Documentation/userspace-api/ebpf/index.rst.
50 * `bpf-helpers(7)`_ maintains a list of helpers available to eBPF programs.
75 Testing and debugging BPF
76 =========================
95 .. _networking-filter: ../networking/filter.rst
96 .. _man-pages: https://www.kernel.org/doc/man-pages/
97 .. _bpf(2): https://man7.org/linux/man-pages/man2/bpf.2.html
98 .. _bpf-helpers(7): https://man7.org/linux/man-pages/man7/bpf-helpers.7.html
99 .. _BPF and XDP Reference Guide: https://docs.cilium.io/en/latest/bpf/