summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/fm10k
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2018-04-12 11:15:58 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-05-09 09:02:44 -0700
commit454ca380ce3cac79bfd295f5a7ae15ec26ff1b67 (patch)
treea76fff3123f6485f4807a69afb5ee7f31e277297 /drivers/net/ethernet/intel/fm10k
parent36592d6ce8d38590894fb34329b0786386ee75bc (diff)
downloadtalos-obmc-linux-454ca380ce3cac79bfd295f5a7ae15ec26ff1b67.tar.gz
talos-obmc-linux-454ca380ce3cac79bfd295f5a7ae15ec26ff1b67.zip
fm10k: warn if the stat size is unknown
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 'drivers/net/ethernet/intel/fm10k')
-rw-r--r--drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
index 09fa1a30ee3e..7657daa27298 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
@@ -248,6 +248,8 @@ static void __fm10k_add_ethtool_stats(u64 **data, void *pointer,
*((*data)++) = *(u8 *)p;
break;
default:
+ WARN_ONCE(1, "unexpected stat size for %s",
+ stats[i].stat_string);
*((*data)++) = 0;
}
}
OpenPOWER on IntegriCloud