From: Rohan G Thomas Date: Fri, 31 Oct 2025 17:27:09 +0000 (+0800) Subject: net: stmmac: socfpga: Enable TSO for Agilex5 platform X-Git-Tag: v6.19-rc1~170^2~226^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e28988aef70f8f993d93a62161a202e930cfce55;p=thirdparty%2Flinux.git net: stmmac: socfpga: Enable TSO for Agilex5 platform Agilex5 supports TCP Segmentation Offload(TSO). This commit enables TSO for Agilex5 socfpga platforms. Signed-off-by: Rohan G Thomas Link: https://patch.msgid.link/20251101-agilex5_ext-v2-3-a6b51b4dca4d@altera.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c index 4f256f0ae05c1..1837346ca2d43 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c @@ -458,6 +458,9 @@ static void socfpga_agilex5_setup_plat_dat(struct socfpga_dwmac *dwmac) plat_dat->core_type = DWMAC_CORE_XGMAC; + /* Enable TSO */ + plat_dat->flags |= STMMAC_FLAG_TSO_EN; + /* Enable TBS */ switch (plat_dat->tx_queues_to_use) { case 8: