ixgbevf: Add zero_base handler to network statistics
authorDon Skidmore <donald.c.skidmore@intel.com>
Wed, 25 Sep 2013 08:03:09 +0000 (08:03 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 29 Oct 2013 11:22:24 +0000 (04:22 -0700)
commit44bd741e10a5bc7d7dd14a79dd58f403819f43bd
tree93d3cc944d86e550a0fad5a1e29f98b6fc44b477
parent3b5dca262f52793fdff4d0d970e8f1cec3f7f2ef
ixgbevf: Add zero_base handler to network statistics

This patch removes the need to keep a zero_base variable in the adapter
structure. Now we just use two different macros to set the non-zero and
zero base. This adds to readability and shortens some of the structure
initialization under 80 columns. The gathering of status for ethtool was
slightly modified to again better fit into 80 columns and become a bit
more readable.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Don Skidmore <donald.c.skidmore@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/ixgbevf/ethtool.c
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h