Re: [PATCH v1 3/5] bpf: add helper masks for ADJ_ROOM decap flags
From: Willem de Bruijn
Date: Tue Mar 17 2026 - 09:29:34 EST
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 <mtottenh@xxxxxxxxxx>
> Signed-off-by: Max Tottenham <mtottenh@xxxxxxxxxx>
> Co-developed-by: Anna Glasgall <aglasgal@xxxxxxxxxx>
> Signed-off-by: Anna Glasgall <aglasgal@xxxxxxxxxx>
> Signed-off-by: Nick Hudson <nhudson@xxxxxxxxxx>
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.