]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 13:24:59 +0000 (21:24 +0800)
commit0c8aba7d30ad80069f2db5dd2948d57fe464e671
treef2a86c4223694aa0ec509f13798e451d8d23fe9a
parent53cb5f7df78ecbb2695d5a2a1b55096baf50a5b2
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.

(cherry picked from commit ab50a2a430693b0961dc7b7d9fe2a4bd77d11ea6)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igbvf/ethtool.c
drivers/net/igbvf/igbvf.h
drivers/net/igbvf/netdev.c