ixgbe: Move interrupt related values out of ring and into q_vector
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 11 Jun 2011 01:45:08 +0000 (01:45 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Jul 2011 05:56:17 +0000 (22:56 -0700)
commitbd19805803a954415ec36a559fd3b8a0a3647d7c
treef0c61bccd3bd2e019c5bec692171532a4566a326
parent08c8833b29cfa4343ff132eebc5648b234eb3f85
ixgbe: Move interrupt related values out of ring and into q_vector

This change moves work_limit, total_packets, and total_bytes into the ring
container struct of the q_vector.  The advantage of this is that it should
reduce the size of memory used in the event of multiple rings being
assigned to a single q_vector.  In addition it should help to reduce the
total workload for calculating itr since now total_packets and total_bytes
will be the total work done of the interrupt instead of for the ring.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe.h
drivers/net/ixgbe/ixgbe_ethtool.c
drivers/net/ixgbe/ixgbe_main.c