aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c
diff options
context:
space:
mode:
authorJakub Sitnicki <jakub@cloudflare.com>2025-08-14 11:59:28 +0200
committerMartin KaFai Lau <martin.lau@kernel.org>2025-08-18 10:29:42 -0700
commit6877cd392baecf816c2ba896a9d42874628004a5 (patch)
tree13fa85d0eca4b82cf9cef66df15c1da5c5f28776 /tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c
parentbpf: Add dynptr type for skb metadata (diff)
downloadlinux-6877cd392baecf816c2ba896a9d42874628004a5.tar.gz
linux-6877cd392baecf816c2ba896a9d42874628004a5.zip
bpf: Enable read/write access to skb metadata through a dynptr
Now that we can create a dynptr to skb metadata, make reads to the metadata area possible with bpf_dynptr_read() or through a bpf_dynptr_slice(), and make writes to the metadata area possible with bpf_dynptr_write() or through a bpf_dynptr_slice_rdwr(). Note that for cloned skbs which share data with the original, we limit the skb metadata dynptr to be read-only since we don't unclone on a bpf_dynptr_write to metadata. Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com> Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://patch.msgid.link/20250814-skb-metadata-thru-dynptr-v7-2-8a39e636e0fb@cloudflare.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c')
0 files changed, 0 insertions, 0 deletions