Re: [PATCH] net: stmmac: Disable checksum insertion for XDP frame TX
From: Andrew Lunn
Date: Tue Sep 29 2026 - 16:29:54 EST
On Tue, Sep 29, 2026 at 08:10:25PM +0800, Jisheng Zhang wrote:
> stmmac enables TX checksum insertion for XDP frames whenever the queue
> supports it. XDP frames carry no TX checksum offload request, so this
> can overwrite a checksum already present in the packet.
>
> Pass false to stmmac_prepare_tx_desc() when transmitting an XDP frame
> so that the packet is sent with its checksum fields unchanged.
This seems odd to me.
If the frame contains a checksum, it is either correct, and the
hardware calculated one will come out the same, not an issue. Or the
checksum in the frame is actually wrong, because the frame has got
mangled by eBPF before sending it out, and you want the hardware to
calculate the correct value.
What an i missing?
Andrew