]> Gentwo Git Trees - linux/.git/commit
riscv, bpf: Optimize cmpxchg insn with Zacas support
authorPu Lehui <pulehui@huawei.com>
Sat, 19 Jul 2025 09:17:27 +0000 (09:17 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 15 Aug 2025 08:46:51 +0000 (10:46 +0200)
commit1c0196b878a69927449d649163388ad63cafcacb
treecd228af3777176be23f2a13369d153952aeae5b1
parentde39d2c4cdb68ece47ff9609dd5c9e87b918d1bd
riscv, bpf: Optimize cmpxchg insn with Zacas support

Optimize cmpxchg instruction with amocas.w and amocas.d
Zacas instructions.

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>
Reviewed-by: Björn Töpel <bjorn@rivosinc.com>
Acked-by: Björn Töpel <bjorn@kernel.org>
Link: https://lore.kernel.org/bpf/20250719091730.2660197-8-pulehui@huaweicloud.com
arch/riscv/net/bpf_jit.h
arch/riscv/net/bpf_jit_comp64.c