[PATCH bpf-next 0/2] Enable inline bpf_kptr_xchg() for RV64
Björn Töpel
bjorn at kernel.org
Tue Jan 30 09:39:49 PST 2024
Pu Lehui <pulehui at huaweicloud.com> writes:
> This patch is the RV64 implementation of inline bpf_kptr_xchg()[0]. RV64
> JIT supports 64-bit BPF_XCHG atomic instructions. At the same time, the
> underlying implementation of xchg() and atomic64_xchg() in RV64 both are
> raw_xchg() that supported 64-bit. Therefore inline bpf_kptr_xchg() will
> have equivalent semantics. Let's inline it for better performance.
>
> link: https://lore.kernel.org/bpf/20240105104819.3916743-1-houtao@huaweicloud.com [0]
Acked-by: Björn Töpel <bjorn at kernel.org>
More information about the linux-riscv
mailing list