Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpf, doc: add RISC-V JIT to BPF documentation

Update Documentation/networking/filter.txt and
Documentation/sysctl/net.txt to mention RISC-V.

Signed-off-by: Björn Töpel <bjorn.topel@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>

authored by

Björn Töpel and committed by
Daniel Borkmann
e8cb0167 8a9e0aff

+10 -7
+9 -7
Documentation/networking/filter.txt
··· 464 464 JIT compiler 465 465 ------------ 466 466 467 - The Linux kernel has a built-in BPF JIT compiler for x86_64, SPARC, PowerPC, 468 - ARM, ARM64, MIPS and s390 and can be enabled through CONFIG_BPF_JIT. The JIT 469 - compiler is transparently invoked for each attached filter from user space 470 - or for internal kernel users if it has been previously enabled by root: 467 + The Linux kernel has a built-in BPF JIT compiler for x86_64, SPARC, 468 + PowerPC, ARM, ARM64, MIPS, RISC-V and s390 and can be enabled through 469 + CONFIG_BPF_JIT. The JIT compiler is transparently invoked for each 470 + attached filter from user space or for internal kernel users if it has 471 + been previously enabled by root: 471 472 472 473 echo 1 > /proc/sys/net/core/bpf_jit_enable 473 474 ··· 604 603 skb pointer). All constraints and restrictions from bpf_check_classic() apply 605 604 before a conversion to the new layout is being done behind the scenes! 606 605 607 - Currently, the classic BPF format is being used for JITing on most 32-bit 608 - architectures, whereas x86-64, aarch64, s390x, powerpc64, sparc64, arm32 perform 609 - JIT compilation from eBPF instruction set. 606 + Currently, the classic BPF format is being used for JITing on most 607 + 32-bit architectures, whereas x86-64, aarch64, s390x, powerpc64, 608 + sparc64, arm32, riscv (RV64G) perform JIT compilation from eBPF 609 + instruction set. 610 610 611 611 Some core changes of the new internal format: 612 612
+1
Documentation/sysctl/net.txt
··· 52 52 - sparc64 53 53 - mips64 54 54 - s390x 55 + - riscv 55 56 56 57 And the older cBPF JIT supported on the following archs: 57 58 - mips