]> 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, 5 Feb 2016 18:43:08 +0000 (10:43 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:03:57 +0000 (22:03 -0800)
commit5341c3a3f375a833c5c898957b24f781b8f74499
treefda15a11a4f54b80f56f773a2ca21da5d5af68cf
parentaebd9f5eb3c1899c4146ea19be4384a014e2a067
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. Skip handling of the per-queue stats as these will be
reworked in a following patch.

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 d2e0721b18f320232dc36a0e4cc7beb620e8c9bd)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c