Skip to contentSkip to conversation

r8169: fix performance issue on RTL8168evl

PATCH Applied Heiner Kallweit 2 participants 2 messages Aug 8, 2019 – Aug 9, 2019

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 r8169: fix performance issue on RTL8168evl

From: Holger Hoffstätte <[email protected]> Disabling TSO but leaving SG active results is a significant performance drop. Therefore disable also SG on RTL8168evl. This restores the original performance.

Fixes 93681cd7d94f ("r8169: enable HW csum and TSO")
---
 drivers/net/ethernet/realtek/r8169_main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/ethernet/realtek/r8169_main.c +3 -3
index b2a275d85..912bd41ea 100644
@@ -6898,9 +6898,9 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 
 	/* RTL8168e-vl has a HW issue with TSO */
 	if (tp->mac_version == RTL_GIGA_MAC_VER_34) {
-		dev->vlan_features &= ~NETIF_F_ALL_TSO;
-		dev->hw_features &= ~NETIF_F_ALL_TSO;
-		dev->features &= ~NETIF_F_ALL_TSO;
+		dev->vlan_features &= ~(NETIF_F_ALL_TSO | NETIF_F_SG);
+		dev->hw_features &= ~(NETIF_F_ALL_TSO | NETIF_F_SG);
+		dev->features &= ~(NETIF_F_ALL_TSO | NETIF_F_SG);
 	}
 
 	dev->hw_features |= NETIF_F_RXALL;
Signature · 1 line
2.22.0
maintainer Applied
#1 lore raw

From: Heiner Kallweit <[email protected]>
Date: Fri, 9 Aug 2019 00:02:40 +0200

Quoted 8 lines

From: Holger Hoffstätte <[email protected]> Disabling TSO but leaving SG active results is a significant performance drop. Therefore disable also SG on RTL8168evl. This restores the original performance.

Fixes 93681cd7d94f ("r8169: enable HW csum and TSO")

Applied.