]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix setting of TXDCTL.WTRHESH when ITR is set to 0 and no BQL
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 18 Sep 2014 08:05:02 +0000 (08:05 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 2 Oct 2014 09:17:42 +0000 (02:17 -0700)
commit61b33e2350e02b48d1633f5827f8114766449b6f
treec9ec64bf3575fd52cf0828de7f60b493065875da
parentf6a4062f967960729ef232f1ba39f32a11b6d353
ixgbe: fix setting of TXDCTL.WTRHESH when ITR is set to 0 and no BQL

This patch consolidates the logic behind dynamically setting TXDCTL.WTHRESH
depending on interrupt throttle rate (ITR) setting regardless of BQL.

Previously TXDCTL.WTHRESH was dynamically being set only with BQL being
enabled, but we have to set it regardless of BQL when ITR is low to avoid
Tx stalls/hangs.

CC: John Greene <jogreene@redhat.com>
Reported by: Masayuki Gouji <gouji.masayuki@jp.fujitsu.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c