]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Make bpf_skb_vlan_pop helper metadata-safe
authorJakub Sitnicki <jakub@cloudflare.com>
Wed, 5 Nov 2025 20:19:42 +0000 (21:19 +0100)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 10 Nov 2025 18:52:31 +0000 (10:52 -0800)
commitefd35c26239bed39193201e958d65e695231ccda
treee76b6f417245b5f4fe29320ec5271d25d51d953b
parentb85be58e2f7cff47f7477ae61022644a198ee592
bpf: Make bpf_skb_vlan_pop helper metadata-safe

Use the metadata-aware helper to move packet bytes after skb_pull(),
ensuring metadata remains valid after calling the BPF helper.

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-5-5ceb08a9b37b@cloudflare.com
include/linux/if_vlan.h