]> www.infradead.org Git - users/jedix/linux-maple.git/commit
e1000e: Fix default interrupt throttle rate not set in NIC HW
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 20 Apr 2012 08:51:45 +0000 (08:51 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 07:59:31 +0000 (15:59 +0800)
commita654ce37a6809e85fc53b610b4545fc82af15c9f
tree998eeadf70addc41b76847e5eae334b77a58bc1d
parentc2178e04d25e9cf47bf9db18ee327231f44f4975
e1000e: Fix default interrupt throttle rate not set in NIC HW

Based on the original patch from  Ying Cai <ycai@google.com>
This change ensures that the itr/itr_setting adjustment logic is used,
even for the default/compiled-in value.

Context:
  When we changed the default InterruptThrottleRate value from default
  (3 = dynamic mode) to 8000 for example, only adapter->itr_setting
  (which controls interrupt coalescing mode) was set to 8000, but
  adapter->itr (which controls the value set in NIC register) was not
  updated accordingly. So from ethtool, it seemed the interrupt
  throttling is enabled at 8000 intr/s, but the NIC actually was
  running in dynamic mode which has lower CPU efficiency especially
  when throughput is not high.

CC: Ying Cai <ycai@google.com>
CC: David Decotigny <david.decotigny@google.com>
(cherry picked from commit 727c356f4d799b53f94cf8fe43e19d64482348c7)
Signed-off-by: Jeff Kirsher <jeffrey.kirsher@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/e1000e/param.c