]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: Change wthresh to 1 to avoid possible Tx stalls
authorHiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Wed, 10 Oct 2012 15:34:20 +0000 (15:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2012 02:59:18 +0000 (22:59 -0400)
commit092df8bf65f6198082c39236cc157c01d1fc88d1
tree9ceb5bd10c6161ecc65641e090321769e7c06d09
parenta2710d6bb10b6209b3e410e8008649264db8f58e
e1000e: Change wthresh to 1 to avoid possible Tx stalls

This patch originated from Hiroaki SHIMODA but has been modified
by Intel with some minor cleanups and additional commit log text.

Denys Fedoryshchenko and others reported Tx stalls on e1000e with
BQL enabled.  Issue was root caused to hardware delays. They were
introduced because some of the e1000e hardware with transmit
writeback bursting enabled, waits until the driver does an
explict flush OR there are WTHRESH descriptors to write back.

Sometimes the delays in question were on the order of seconds,
causing visible lag for ssh sessions and unacceptable tx
completion latency, especially for BQL enabled kernels.

To avoid possible Tx stalls, change WTHRESH back to 1.

The current plan is to investigate a method for re-enabling
WTHRESH while not harming BQL, but those patches will be later
for net-next if they work.

please enqueue for stable since v3.3 as this bug was introduced in
commit 9b124a6cf8c2e9041e71139e183441f46bca8bf5
Author: Tom Herbert <therbert@google.com>
Date:   Mon Nov 28 16:33:16 2011 +0000

    e1000e: Support for byte queue limits

    Changes to e1000e to use byte queue limits.

Reported-by: Denys Fedoryshchenko <denys@visp.net.lb>
Tested-by: Denys Fedoryshchenko <denys@visp.net.lb>
Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
CC: eric.dumazet@gmail.com
CC: therbert@google.com
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/e1000e/e1000.h
drivers/net/ethernet/intel/e1000e/netdev.c