summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2016-04-07 15:58:39 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-04-25 03:59:04 -0700
commitd72d6c19b583afc09ace22baf80b29b11139a8f3 (patch)
treecd9cfee204e1fd419ee81ffaa9e3106b4f3f3876 /drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
parent2f2219bea21118511c23d24dba5f2145f870a7db (diff)
downloadop-kernel-dev-d72d6c19b583afc09ace22baf80b29b11139a8f3.zip
op-kernel-dev-d72d6c19b583afc09ace22baf80b29b11139a8f3.tar.gz
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/ixgbevf.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud