ixgbe: Cleanup q_vector interrupt throttle rate logic
authorEmil Tantilov <emil.s.tantilov@intel.com>
Wed, 31 Aug 2011 00:01:16 +0000 (00:01 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 29 Sep 2011 06:08:23 +0000 (23:08 -0700)
commitd5bf4f67a6b414628dc95b9c4891525296c09a29
tree6f26c9b28c45f1aa923e138f5153505dc949aaaa
parentdd1ed3b7bfed15f6162f63840941e9cf4f3611a1
ixgbe: Cleanup q_vector interrupt throttle rate logic

This patch is meant to help cleanup the interrupt throttle rate logic by
storing the interrupt throttle rate as a value in microseconds instead of
interrupts per second.  The advantage to this approach is that the value
can now be stored in an 16 bit field and doesn't require as much math to
flip the value back and forth since the hardware already used microseconds
when setting the rate.

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.h
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c