fm10k: add helper functions to set strings and data for ethtool stats
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 1 Apr 2016 18:15:09 +0000 (11:15 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 21 Apr 2016 05:17:29 +0000 (22:17 -0700)
commit09401ae25191039f4aa45c13718595f550745c68
treee08c1de41b12c778538746b590683aa1d7721b3e
parent10c9ead9f3c6bb24bddc9a96681f7d58e6623966
fm10k: add helper functions to set strings and data for ethtool stats

Reduce duplicate code and the amount of indentation by adding
fm10k_add_stat_strings and fm10k_add_ethtool_stats functions which help
add fm10k_stat structures to the ethtool stats callbacks. This helps
increase ease of use for future stat additions, and increases code
readability.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c