]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: refactor ethtool stats handling
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 7 Apr 2016 22:58:39 +0000 (15:58 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 25 Apr 2016 10:59:04 +0000 (03:59 -0700)
commit8135fda9c45055e055035a1d02a88d41710cea91
treecd9cfee204e1fd419ee81ffaa9e3106b4f3f3876
parentb3b6665979e29dae77f57445f7b0bc55963de506
ixgbevf: refactor ethtool stats handling

This brings the logic closer to how we handle the stats in ixgbe and it
sets us up for introducing per-queue stats.

Use IXGBEVF_STAT and IXGBEVF_NETDEV_STAT for accessing the driver and
netdev stats respectively. This way we don't have to calculate the
stats based on register values which could lead to the counters not
being initialized properly when the interface is down.

IXGBEVF_QUEUE_STATS_LEN is set to include the number of queues.

Also some defines were renamed to use the IXGBEVF prefix.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ethtool.c