diff options
| author | Pu Lehui <[email protected]> | 2024-01-30 12:46:58 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2024-02-01 10:35:48 +0000 |
| commit | 69065aa11ca680d76a6c6bc088aa0f0abe24afdb (patch) | |
| tree | 0228b8ec5043cee4077500406119b3c0aa777d7a /tools/testing/selftests/bpf/prog_tests/recursion.c | |
| parent | bpf, docs: Clarify which legacy packet instructions existed (diff) | |
| download | kernel-69065aa11ca680d76a6c6bc088aa0f0abe24afdb.tar.gz kernel-69065aa11ca680d76a6c6bc088aa0f0abe24afdb.zip | |
riscv, bpf: Enable inline bpf_kptr_xchg() for RV64
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.
Signed-off-by: Pu Lehui <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Björn Töpel <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions
