]> www.infradead.org Git - nvme.git/commit
riscv, bpf: Use bpf_prog_pack for RV64 bpf trampoline
authorPu Lehui <pulehui@huawei.com>
Sat, 22 Jun 2024 03:04:37 +0000 (03:04 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 1 Jul 2024 15:10:46 +0000 (17:10 +0200)
commit2382a405c581ae8f39f898055654e2000e7dd0d3
treea4b02e470a6537ebfdadaf1bfa695a11b2f3db85
parent9f1e16fb1fc9826001c69e0551d51fbbcd2d74e9
riscv, bpf: Use bpf_prog_pack for RV64 bpf trampoline

We used bpf_prog_pack to aggregate bpf programs into huge page to
relieve the iTLB pressure on the system. We can apply it to bpf
trampoline, as Song had been implemented it in core and x86 [0]. This
patch is going to use bpf_prog_pack to RV64 bpf trampoline. Since Song
and Puranjay have done a lot of work for bpf_prog_pack on RV64,
implementing this function will be easy.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Björn Töpel <bjorn@rivosinc.com> #riscv
Link: https://lore.kernel.org/all/20231206224054.492250-1-song@kernel.org
Link: https://lore.kernel.org/bpf/20240622030437.3973492-4-pulehui@huaweicloud.com
arch/riscv/net/bpf_jit_comp64.c