]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:47:30 +0000 (21:47 -0800)
commitf2ef1afca23615d694b5d10689881b56ddf084ad
tree34c6cd98bb9b585a6b422163d76cf1457606719f
parent51849095b3ebf61f8a8c41aedfafdc7c82e737c1
ixgbevf: refactor ethtool stats handling

Orabug: 24568240

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>
(cherry picked from commit d72d6c19b583afc09ace22baf80b29b11139a8f3)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbevf/ethtool.c