]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Cover skb metadata access after vlan push/pop helper
authorJakub Sitnicki <jakub@cloudflare.com>
Wed, 5 Nov 2025 20:19:50 +0000 (21:19 +0100)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 10 Nov 2025 18:52:32 +0000 (10:52 -0800)
commit354d020c29f72513dce4f3902890158d99b67b67
treeb444ca32c590af6fca926bb615c3a4a3d92b7945
parent1e1357fde808a35c6069759298660134e5dab053
selftests/bpf: Cover skb metadata access after vlan push/pop helper

Add a test to verify that skb metadata remains accessible after calling
bpf_skb_vlan_push() and bpf_skb_vlan_pop(), which modify the packet
headroom.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20251105-skb-meta-rx-path-v4-13-5ceb08a9b37b@cloudflare.com
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
tools/testing/selftests/bpf/progs/test_xdp_meta.c