OSDN Git Service

i40e: add helper to copy statistic values into ethtool buffer
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 31 Jul 2018 10:41:39 +0000 (03:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 7 Aug 2018 15:19:08 +0000 (08:19 -0700)
commitf303048067a78d95947c1748ce1e55940ab2100b
tree5e0e1db9d961f9d6f66742bd37dd32ea9cdd5ea9
parent91f0654461f615247fb6cef6fc9de57f6607a677
i40e: add helper to copy statistic values into ethtool buffer

Similar to the helper function to copy the ethtool stats strings, add
and use a helper function for copying the ethtool stats into the
supplied buffer.

Just like before, we use a macro to avoid having to pass ARRAY_SIZE
manually, so as to reduce chance of bugs.

Some of the stats, especially queue stats, are a bit trickier, and will
be handled in future patches.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c