> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf
> Of Jakub Sitnicki via Intel-wired-lan
> Sent: Saturday, January 10, 2026 10:05 PM
> To: [email protected]
> Cc: David S. Miller <[email protected]>; Eric Dumazet
> <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni
> <[email protected]>; Simon Horman <[email protected]>; Michael Chan
> <[email protected]>; Pavan Chebbi <[email protected]>;
> Andrew Lunn <[email protected]>; Nguyen, Anthony L
> <[email protected]>; Kitszel, Przemyslaw
> <[email protected]>; Saeed Mahameed <[email protected]>;
> Leon Romanovsky <[email protected]>; Tariq Toukan <[email protected]>;
> Mark Bloch <[email protected]>; Alexei Starovoitov <[email protected]>;
> Daniel Borkmann <[email protected]>; Jesper Dangaard Brouer
> <[email protected]>; John Fastabend <[email protected]>;
> Stanislav Fomichev <[email protected]>; intel-wired-
> [email protected]; [email protected]; [email protected]
> Subject: [Intel-wired-lan] [PATCH net-next 09/10] xsk: Call
> skb_metadata_set when skb->data points past metadata
>
> Prepare to copy the XDP metadata into an skb extension in
> skb_metadata_set.
>
> Adjust AF_XDP to pull from skb->data before calling skb_metadata_set.
>
> Signed-off-by: Jakub Sitnicki <[email protected]>
> ---
> net/core/xdp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/core/xdp.c b/net/core/xdp.c index
> 9100e160113a..e86ac1d6ad6d 100644
> --- a/net/core/xdp.c
> +++ b/net/core/xdp.c
> @@ -768,8 +768,8 @@ struct sk_buff *xdp_build_skb_from_zc(struct
> xdp_buff *xdp)
>
> metalen = xdp->data - xdp->data_meta;
> if (metalen > 0) {
> - skb_metadata_set(skb, metalen);
> __skb_pull(skb, metalen);
> + skb_metadata_set(skb, metalen);
> }
>
> skb_record_rx_queue(skb, rxq->queue_index);
>
> --
> 2.43.0
Reviewed-by: Aleksandr Loktionov <[email protected]>