diff options
author | Alexei Starovoitov <ast@kernel.org> | 2024-03-07 17:08:09 -0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-03-11 15:43:42 -0700 |
commit | 204c628730c62de5a0b593008549a9b95aa96b01 (patch) | |
tree | 0b9cd27de01c10719f2b7c49b07660652df3d9d9 /tools/net/ynl/generated/netdev-user.c | |
parent | 2e7ba4f8fd1fa879b37db0b738c23ba2af8292ee (diff) |
bpf: Add helper macro bpf_addr_space_cast()
Introduce helper macro bpf_addr_space_cast() that emits:
rX = rX
instruction with off = BPF_ADDR_SPACE_CAST
and encodes dest and src address_space-s into imm32.
It's useful with older LLVM that doesn't emit this insn automatically.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/bpf/20240308010812.89848-12-alexei.starovoitov@gmail.com
Diffstat (limited to 'tools/net/ynl/generated/netdev-user.c')
0 files changed, 0 insertions, 0 deletions