diff options
| author | Amery Hung <ameryhung@gmail.com> | 2025-09-22 16:33:55 -0700 |
|---|---|---|
| committer | Martin KaFai Lau <martin.lau@kernel.org> | 2025-09-23 13:35:12 -0700 |
| commit | 323302f54db92dc1c80ff5b114c20f19ec0adf81 (patch) | |
| tree | 76e286a7162afb7cbd4ce5345fdfc4cecb4e5349 /tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c | |
| parent | bpf: Support specifying linear xdp packet data size for BPF_PROG_TEST_RUN (diff) | |
| download | linux-323302f54db92dc1c80ff5b114c20f19ec0adf81.tar.gz linux-323302f54db92dc1c80ff5b114c20f19ec0adf81.zip | |
selftests/bpf: Test bpf_xdp_pull_data
Test bpf_xdp_pull_data() with xdp packets with different layouts. The
xdp bpf program first checks if the layout is as expected. Then, it
calls bpf_xdp_pull_data(). Finally, it checks the 0xbb marker at offset
1024 using directly packet access.
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250922233356.3356453-8-ameryhung@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c')
0 files changed, 0 insertions, 0 deletions
