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)
commitffefa9f64ce021b26aa3fd6558f1d3b6c47b3619
treec9ec64bf3575fd52cf0828de7f60b493065875da
parent340c5203bc3158d6991dfe280f62ba7bd9584d62
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