diff options
| author | 2025-02-26 18:32:00 +0000 | |
|---|---|---|
| committer | 2025-03-15 11:48:16 -0700 | |
| commit | daec295a70941c556708c59e1f970a24d8194d89 (patch) | |
| tree | bb16ba1f0d92b2684d15de0f40d30936cdfcf4dc /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | bpf/helpers: Refactor bpf_dynptr_read and bpf_dynptr_write (diff) | |
bpf/helpers: Introduce bpf_dynptr_copy kfunc
Introducing bpf_dynptr_copy kfunc allowing copying data from one dynptr to
another. This functionality is useful in scenarios such as capturing XDP
data to a ring buffer.
The implementation consists of 4 branches:
* A fast branch for contiguous buffer capacity in both source and
destination dynptrs
* 3 branches utilizing __bpf_dynptr_read and __bpf_dynptr_write to copy
data to/from non-contiguous buffer
Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250226183201.332713-3-mykyta.yatsenko5@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
