]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commitd72d6c19b583afc09ace22baf80b29b11139a8f3
treecd9cfee204e1fd419ee81ffaa9e3106b4f3f3876
parent2f2219bea21118511c23d24dba5f2145f870a7db
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