net: stmmac: disable Split Header (SPH) for Intel platforms
Subsystems (5)
PATCH 1/1 net: stmmac: disable Split Header (SPH) for Intel platforms
Based on DesignWare Ethernet QoS datasheet, we are seeing the limitation of Split Header (SPH) feature is not supported for Ipv4 fragmented packet. This SPH limitation will cause ping failure when the packets size exceed the MTU size. For example, the issue happens once the basic ping packet size is larger than the configured MTU size and the data is lost inside the fragmented packet, replaced by zeros/corrupted values, and leads to ping fail.
So, disable the Split Header for Intel platforms.
--- drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 1 + drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- include/linux/stmmac.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +1 -0
@@ -454,6 +454,7 @@ static int intel_mgbe_common_data(struct pci_dev *pdev, plat->has_gmac4 =1 ; plat->force_sf_dma_mode =0 ; plat->tso_en =1 ; + plat->sph_disable =1 ;/* Multiplying factor to the clk_eee_i clock time * period to make it closer to 100 ns. This value
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +1 -1
@@ -7021,7 +7021,7 @@ int stmmac_dvr_probe(struct device *device,dev_info (priv->device,"TSO feature enabled\n" ); } -if (priv->dma_cap.sphen) { +if (priv->dma_cap.sphen && !priv->plat->sph_disable) { ndev->hw_features |=NETIF_F_GRO ; priv->sph_cap = true; priv->sph = priv->sph_cap;
include/linux/stmmac.h +1 -0
@@ -270,5 +270,6 @@ struct plat_stmmacenet_data {int msi_rx_base_vec;int msi_tx_base_vec;bool use_phy_wol; + bool sph_disable; };#endif
Signature · 1 line
2.25.1
Hi,
Quoted 9 lines · Tan Tee Min
Based on DesignWare Ethernet QoS datasheet, we are seeing the limitation of Split Header (SPH) feature is not supported for Ipv4 fragmented packet. This SPH limitation will cause ping failure when the packets size exceed the MTU size. For example, the issue happens once the basic ping packet size is larger than the configured MTU size and the data is lost inside the fragmented packet, replaced by zeros/corrupted values, and leads to ping fail.
So, disable the Split Header for Intel platforms.
Does this issue only apply on Intel platforms?
Thanks,
Kurt
Quoted 11 lines · Kurt Kanzenbach
Hi,
Quoted 8 lines · Tan Tee Min
Based on DesignWare Ethernet QoS datasheet, we are seeing the limitation of Split Header (SPH) feature is not supported for Ipv4 fragmented packet. This SPH limitation will cause ping failure when the packets size exceed the MTU size. For example, the issue happens once the basic ping packet size is larger than the configured MTU size and the data is lost inside the fragmented packet, replaced by zeros/corrupted values, and leads to ping fail.
Quoted 3 lines
Quoted 1 line
So, disable the Split Header for Intel platforms.
Does this issue only apply on Intel platforms?
According to Synopsys IP support, they have confirmed the header-payload splitting for IPv4 fragmented packets is not supported for the Synopsys Ether IPs.
Intel platforms are integrating with GMAC EQoS IP which is impacted by the limitation above, so we are changing the default SPH setting to disabled for Intel Platforms only.
If anyone can confirm on their platform also having the same issues, then we would change the SPH default to disable across the IPs.
Thanks,
Tee Min
Paolo Abeni
maintainerHello,
Quoted 20 lines · Tan Tee Min
Quoted 11 lines · Kurt Kanzenbach
Hi,
Quoted 8 lines · Tan Tee Min
Based on DesignWare Ethernet QoS datasheet, we are seeing the limitation of Split Header (SPH) feature is not supported for Ipv4 fragmented packet. This SPH limitation will cause ping failure when the packets size exceed the MTU size. For example, the issue happens once the basic ping packet size is larger than the configured MTU size and the data is lost inside the fragmented packet, replaced by zeros/corrupted values, and leads to ping fail.
Quoted 3 lines
Quoted 1 line
So, disable the Split Header for Intel platforms.
Does this issue only apply on Intel platforms?
According to Synopsys IP support, they have confirmed the header-payload splitting for IPv4 fragmented packets is not supported for the Synopsys Ether IPs.
Quoted 6 lines
Intel platforms are integrating with GMAC EQoS IP which is impacted by the limitation above, so we are changing the default SPH setting to disabled for Intel Platforms only.
If anyone can confirm on their platform also having the same issues, then we would change the SPH default to disable across the IPs.
Could you please provide a Fixes tag here?
Thanks!
Paolo