Skip to content

Commit f298010

Browse files
khfengJeff Kirsher
authored andcommitted
e1000e: Disable TSO for buffer overrun workaround
Commit b10effb ("e1000e: fix buffer overrun while the I219 is processing DMA transactions") imposes roughly 30% performance penalty. The commit log states that "Disabling TSO eliminates performance loss for TCP traffic without a noticeable impact on CPU performance", so let's disable TSO by default to regain the loss. CC: stable <[email protected]> Fixes: b10effb ("e1000e: fix buffer overrun while the I219 is processing DMA transactions") BugLink: https://bugs.launchpad.net/bugs/1802691 Signed-off-by: Kai-Heng Feng <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 0c80cdb commit f298010

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/ethernet/intel/e1000e

1 file changed

+4
-0
lines changed

drivers/net/ethernet/intel/e1000e/netdev.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5294,6 +5294,10 @@ static void e1000_watchdog_task(struct work_struct *work)
52945294
/* oops */
52955295
break;
52965296
}
5297+
if (hw->mac.type == e1000_pch_spt) {
5298+
netdev->features &= ~NETIF_F_TSO;
5299+
netdev->features &= ~NETIF_F_TSO6;
5300+
}
52975301
}
52985302

52995303
/* enable transmits in the hardware, need to do this

0 commit comments

Comments
 (0)