Re: [PATCH bpf-next,v5 1/1] doc: xdp: clarify driver implementation for XDP Rx metadata
From: Stanislav Fomichev
Date: Wed Jul 16 2025 - 17:54:39 EST
On 07/16, Song Yoong Siang wrote:
> Clarify that drivers must remove device-reserved metadata from the
> data_meta area before passing frames to XDP programs.
>
> Additionally, expand the explanation of how userspace and BPF programs
> should coordinate the use of METADATA_SIZE, and add a detailed diagram
> to illustrate pointer adjustments and metadata layout.
>
> Also describe the requirements and constraints enforced by
> bpf_xdp_adjust_meta().
>
> Signed-off-by: Song Yoong Siang <yoong.siang.song@xxxxxxxxx>
> ---
> V5:
> - create a new section called 'Driver implementation' (Stanislav)
> - reword 'utilize the data_meta area' to 'prepend metadata to received packets' (Jakub)
Thanks!
Acked-by: Stanislav Fomichev <sdf@xxxxxxxxxxx>