]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf888327f5ccb4517ba348102b6d9c7fc11ead95c
treefad9d5bf3dc9621a5d012b504bc599fe424c3d1d
parent7ede0c379d76d1adeb44f4966906c758235ad218
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