]> 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)
commit3475d08ad123f4d03408cbc0379a60f80a1a88e7
treec9ec64bf3575fd52cf0828de7f60b493065875da
parentd1b52bc3e95642d8f26619051ccbcaf705033b9a
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