riscv, bpf: Add kfunc support for RV64
authorPu Lehui <pulehui@huawei.com>
Tue, 21 Feb 2023 14:06:56 +0000 (22:06 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 22 Feb 2023 21:11:31 +0000 (13:11 -0800)
commitd40c3847b485acc3522b62b020f77dcd38ca357f
tree6864d578604c8050bfd72ef2394727b0834f6657
parentdf2ccc180a2e6f6e4343ebee99dcfab4f8af2816
riscv, bpf: Add kfunc support for RV64

This patch adds kernel function call support for RV64. Since the offset
from RV64 kernel and module functions to bpf programs is almost within
the range of s32, the current infrastructure of RV64 is already
sufficient for kfunc, so let's turn it on.

Suggested-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Acked-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20230221140656.3480496-1-pulehui@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/riscv/net/bpf_jit_comp64.c