[Intel-wired-lan] [PATCH v7] fm10k: add helper functions for ethtool stats
Jacob Keller
jacob.e.keller at intel.com
Fri Apr 1 18:15:08 UTC 2016
This is a complete replacement for 74bf40286439 ("fm10k: add helper
functions to set strings and data for ethtool stats", 2016-03-25) on
Jeff's queue, and this the previous v6 patch should be dropped and
replaced with this one. 91daf9c6d966 ("fm10k: remove debug-statistics
support", 2016-03-25) likely depends on this patch.
This version fixes an issue with per-queue statistics due to a
copy-paste error in the queue stats structure.
inter-diff between v6 and v7:
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
index e36ca3f43ae4..f331966ac9df 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
@@ -129,7 +129,7 @@ static const struct fm10k_stats fm10k_gstrings_mbx_stats[] = {
static const struct fm10k_stats fm10k_gstrings_queue_stats[] = {
FM10K_QUEUE_STAT("packets", stats.packets),
- FM10K_QUEUE_STAT("bytes", stats.packets),
+ FM10K_QUEUE_STAT("bytes", stats.bytes),
};
#define FM10K_GLOBAL_STATS_LEN ARRAY_SIZE(fm10k_gstrings_global_stats)
Jacob Keller (1):
fm10k: add helper functions to set strings and data for ethtool stats
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 219 ++++++++++++-----------
1 file changed, 115 insertions(+), 104 deletions(-)
--
2.8.0.rc1.177.g5628860
More information about the Intel-wired-lan
mailing list