]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:04:01 +0000 (22:04 -0800)
commit8ebd255bf7b8fe370edfc8097bde9609853017f3
treec66a641b6e477b0f274466fbced533a68534f46a
parente9b4afb563c16a4fa89e7b95d65e0d2cf75274fd
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>
Orabug: 25394529
(cherry picked from commit 09401ae25191039f4aa45c13718595f550745c68)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c