drivers, ixgbe: export vf statistics
authorMaximilian Heyne <mheyne@amazon.de>
Mon, 9 May 2022 11:03:39 +0000 (11:03 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 9 Jun 2022 16:49:45 +0000 (09:49 -0700)
commit37530030c0b61396be81e38f2aa179c30fb1d216
treefad9d5bf3dc9621a5d012b504bc599fe424c3d1d
parent263efe85a4b618037e1003c9636562d6cbb5f9f3
drivers, ixgbe: export vf statistics

This change retrieves network metrics for virtual functions from the
device and exports them via the iproute2 interface.

The code for retrieving the statistics from the device is taken from the
out-of-tree driver.  The feature was introduced with version 2.0.75.7,
so the diff between this version and the previous version 2.0.72.4 was
used to identify required changes. The export via ethtool is omitted in
favor of using the standard ndo_get_vf_stats interface.

Per-VF statistics can now be printed, for instance, via

  ip --statistics link show dev eth0

Signed-off-by: Maximilian Heyne <mheyne@amazon.de>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h