Re: [PATCH net-next V6 2/3] net/mlx5e: Avoid copying payload to the skb's linear part

From: Amery Hung

Date: Tue May 12 2026 - 12:34:41 EST


> That would work, but maybe with one less conditional:
>
> if (!len)
> __pskb_pull_tail(skb, min(headlen, skb->data_len);
> else if (len < ETH_HLEN)
> __pskb_pull_tail(skb, min(ETH_LEN - len, skb->data_len));
>
> Tariq suggested to make sure that we have an xdp selftest for this.
> Will take it as a follow-up after this series.
>

Sounds good. Make sense.

Thanks,
Amery

> Thanks,
> Dragos
>