[PATCH net] net: stmmac: dwmac-socfpga: disable split header on Agilex 5
willemb at google.com
willemb at google.com
Wed Dec 2 19:40:09 PST 2026
Maxime Chevallier wrote:
> Hi,
> On 11/26/26 04:13, James Clark wrote:
> > On Agilex 5, received IPv4 fragments are corrupted when RX checksum
> > offload is on.
> >
> > This was observed as corrupted downloads on a Terasic DE25-Nano over
> > a PPPoE connection with TCP MSS not clamped. It can be reproduced by
> > running ping -s 2000 to another host on the LAN: ping reports every
> > reply as corrupted.
> >
> > Agilex 5 has an XGMAC core, and stmmac turns split header on whenever
> > RX checksum offload is on.
> >
> > Set STMMAC_FLAG_SPH_DISABLE for Agilex 5. Other glue drivers set this
> > flag already. The same failure with fragmented ping is described in
> > commit 47f753c1108e ("net: stmmac: disable Split Header (SPH) for Intel
> > platforms"), which noted that according to the DesignWare Ethernet
> > QoS (not XGMAC) datasheet, split header is not supported for IPv4
> > fragments.
> >
> > With the flag set, fragments are received intact.
> >
> > Fixes: 93d46ea3e984 ("net: stmmac: socfpga: Agilex5 EMAC platform
> configuration")
> > Cc: stable at vger.kernel.org
> > Signed-off-by: James Clark <jjc at jclark.com>
> Maybe there's a way to properly process these unsplit packets, it seems to
> me (running some tests on DE25-nano too) that the first 256 bytes are in
> buf1 (matches HDSMS, the max size of the header) and the rest is in buf2
> but I
> haven't dug deeper. I'll drop a message to Synopsys, maybe they can shed
> some
> light here.
Agreed. If we understand *how* these IP fragments are corrupted, maybe it
can be fixed up in software. Rather than having to disable header-split
for all packets.
> In the meantime, let's have that disabled on this glue, and wait to see if
> any other XGMAC glues face that.
> Reviewed-by: Maxime Chevallier <maxime.chevallier at bootlin.com>
More information about the linux-arm-kernel
mailing list