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)
commit5dc615520c4dfb358245680f1904bad61116648e
tree4d12dbcf06e480d4290ffeaf364c8c8158586811
parent4e59e5a46936dd649208f348ead678c35197203d
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]