diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2016-04-01 11:15:09 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-04-20 22:17:29 -0700 |
commit | 09401ae25191039f4aa45c13718595f550745c68 (patch) | |
tree | e08c1de41b12c778538746b590683aa1d7721b3e /lib/usercopy.c | |
parent | 10c9ead9f3c6bb24bddc9a96681f7d58e6623966 (diff) | |
download | linux-09401ae25191039f4aa45c13718595f550745c68.tar.gz linux-09401ae25191039f4aa45c13718595f550745c68.tar.xz |
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>
Diffstat (limited to 'lib/usercopy.c')
0 files changed, 0 insertions, 0 deletions