Skip to content

Commit

Permalink
bpf: Update sysctl documentation to list all supported architectures
Browse files Browse the repository at this point in the history
The sysctl documentation states that the JIT is only available on
x86_64, which is no longer correct.

Update the list, and break it out to indicate which architectures
support the cBPF JIT (via HAVE_CBPF_JIT) or the eBPF JIT
(HAVE_EBPF_JIT).

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michael Ellerman authored and David S. Miller committed Aug 17, 2017
1 parent c780a04 commit 014cd0a
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Documentation/sysctl/net.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,23 @@ bpf_jit_enable
--------------

This enables Berkeley Packet Filter Just in Time compiler.
Currently supported on x86_64 architecture, bpf_jit provides a framework
to speed packet filtering, the one used by tcpdump/libpcap for example.

There are two flavors of JIT, the new eBPF JIT supported on:
- x86_64
- arm64
- ppc64
- sparc64
- mips64

And the older cBPF JIT supported on:
- arm
- mips
- ppc
- sparc

The BPF JIT provides a framework to speed packet filtering, the one used by
tcpdump/libpcap for example.

Values :
0 - disable the JIT (default value)
1 - enable the JIT
Expand Down

0 comments on commit 014cd0a

Please sign in to comment.