]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ab8d6981c104e7a9383b464e58de948a3f05217
tree93d3cc944d86e550a0fad5a1e29f98b6fc44b477
parentc90ec45affe3036f9c2edbf02bfec604ac85ec88
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