]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Add BPF JIT support
authorTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 12 Oct 2022 08:36:20 +0000 (16:36 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 12 Oct 2022 08:36:20 +0000 (16:36 +0800)
commit28bc1c304253a82058a6bcd10b6cdb0eb42fa252
tree4d12dbcf06e480d4290ffeaf364c8c8158586811
parent2c3e34ae5558316abf88b598328a87c171d292b4
LoongArch: Add BPF JIT support

BPF programs are normally handled by a BPF interpreter, add BPF JIT
support for LoongArch to allow the kernel to generate native code when
a program is loaded into the kernel. This will significantly speed-up
processing of BPF programs.

Co-developed-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Kbuild
arch/loongarch/Kconfig
arch/loongarch/include/asm/inst.h
arch/loongarch/include/uapi/asm/bpf_perf_event.h [new file with mode: 0644]
arch/loongarch/net/Makefile [new file with mode: 0644]
arch/loongarch/net/bpf_jit.c [new file with mode: 0644]
arch/loongarch/net/bpf_jit.h [new file with mode: 0644]