Subject: Re: [PATCH v1 3/5] bpf: add helper masks for ADJ_ROOM decap flags

From: Willem de Bruijn <[email-masked]>
Date: Tue, 17 Mar 2026 09:27:36 -0400

Nick Hudson wrote:
> Introduce helper masks for bpf_skb_adjust_room() decapsulation flags
> to simplify validation and keep flag handling readable:
> 
> - BPF_F_ADJ_ROOM_DECAP_L4_MASK
> - BPF_F_ADJ_ROOM_DECAP_IPXIP_MASK
> - BPF_F_ADJ_ROOM_ENCAP_MASK
> - BPF_F_ADJ_ROOM_DECAP_MASK
> 
> Also fold these masks into BPF_F_ADJ_ROOM_MASK and per-path flag
> validation checks.
> 
> This is a refactoring/plumbing change; functional decapsulation and
> GSO behavior updates are handled in later patches.
> 
> Co-developed-by: Max Tottenham <[email-masked]>
> Signed-off-by: Max Tottenham <[email-masked]>
> Co-developed-by: Anna Glasgall <[email-masked]>
> Signed-off-by: Anna Glasgall <[email-masked]>
> Signed-off-by: Nick Hudson <[email-masked]>

Only patches 3 through 5 were sent to the netdev list.

Please resubmit the entire series (after the customary 24 hr min) to
the full list.