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 Libbpf is a userspace library for loading and interacting with bpf programs.
26 libbpf/libbpf_naming_convention
37 Frequently asked questions (FAQ)
38 ================================
40 Two sets of Questions and Answers (Q&A) are maintained.
51 The primary info for the bpf syscall is available in the `man-pages`_
52 for `bpf(2)`_. For more information about the userspace API, see
53 Documentation/userspace-api/ebpf/index.rst.
58 * `bpf-helpers(7)`_ maintains a list of helpers available to eBPF programs.
83 Testing and debugging BPF
84 =========================
103 .. _networking-filter: ../networking/filter.rst
104 .. _man-pages: https://www.kernel.org/doc/man-pages/
105 .. _bpf(2): https://man7.org/linux/man-pages/man2/bpf.2.html
106 .. _bpf-helpers(7): https://man7.org/linux/man-pages/man7/bpf-helpers.7.html
107 .. _BPF and XDP Reference Guide: https://docs.cilium.io/en/latest/bpf/