diff options
author | 2024-05-24 15:55:43 +0800 | |
---|---|---|
committer | 2024-06-03 16:45:23 +0200 | |
commit | 96a27ee76f0e95b56f94b6902da7a5ebef372612 (patch) | |
tree | 24657fa8ed9ffa3b3c22cfd1503a43d34b51bd27 /lib/test_bpf.c | |
parent | libbpf: keep FD_CLOEXEC flag when dup()'ing FD (diff) | |
download | wireguard-linux-96a27ee76f0e95b56f94b6902da7a5ebef372612.tar.xz wireguard-linux-96a27ee76f0e95b56f94b6902da7a5ebef372612.zip |
riscv, bpf: Introduce shift add helper with Zba optimization
Zba extension is very useful for generating addresses that index into array
of basic data types. This patch introduces sh2add and sh3add helpers for
RV32 and RV64 respectively, to accelerate addressing for array of unsigned
long data.
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Björn Töpel <bjorn@kernel.org>
Link: https://lore.kernel.org/bpf/20240524075543.4050464-3-xiao.w.wang@intel.com
Diffstat (limited to 'lib/test_bpf.c')
0 files changed, 0 insertions, 0 deletions