]> git.baikalelectronics.ru Git - kernel.git/commit
igbvf: refactor Interrupt Throttle Rate code
authorMitch A Williams <mitch.a.williams@intel.com>
Sat, 14 Jan 2012 08:10:50 +0000 (08:10 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 7 Feb 2012 11:49:23 +0000 (03:49 -0800)
commit970cfbc55e3af620e6ffd5d0ddb43992f6bb9cce
tree12922f9f8d20c29006f6d99c4d1b2a1989215412
parent02f956ba7ee0e232804b61a6f3a6608aafdfce8d
igbvf: refactor Interrupt Throttle Rate code

The existing ITR code is broken and confusing, with lots of similarly-named
variables that do different things. Additionally, after the driver carefully
determines the optimal interrupt rate for the adapter, it then
ignores it and always writes a fixed, suboptimal value.

This patch refactors that code to make variable names more descriptive of
what they actually do, and then actually writes the calculated result to
the hardware.

Preliminary testing shows that netperf TCP_STREAM tests goes from ~918Mbps
to ~940Mbps, and TCP_RR goes from ~2k transactions/sec up to > 8k.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Robert E Garrett <robertX.e.garrett@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igbvf/ethtool.c
drivers/net/ethernet/intel/igbvf/igbvf.h
drivers/net/ethernet/intel/igbvf/netdev.c