]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fm10k: remove debug-statistics support
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 4 Mar 2016 23:37:48 +0000 (15:37 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:04:02 +0000 (22:04 -0800)
commita76dc202b5ce23045dc6a25700232fdb2c3f6f50
tree24a72a2559b94df8d84fc5d3bd5b36c68f298f66
parent8ebd255bf7b8fe370edfc8097bde9609853017f3
fm10k: remove debug-statistics support

This change fixes an (ab)use of the ethtool stats API, which could
result in corrupt memory or misleading stat output. The ethtool stats
API is not robust enough to handle varying number of statistics due to
how it requests the size and allocates memory. Remove the poorly conceived
support originally added for extra debug statistics. In the future,
a new stats API may open up the ability to display these statistics.

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