]> 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)
commit103301f4a64a951a24b11388ebf61ce18d492c06
tree93d3cc944d86e550a0fad5a1e29f98b6fc44b477
parent82645517b4352622ef8e856ee0d626a76c0f54b5
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